If you don’t have permission, you can use sudo gedit main.c to execute it, or add permissions to the file sudo chmod 777 main.c
The reason why it is stuck is because of ctrl+z. This is not a normal shutdown or a forced shutdown. It is a background execution. If you open this program without closing it, there will definitely be problems. If you want to force close, use ctrl+c.
If you don’t have permission, you can use sudo gedit main.c to execute it, or add permissions to the file sudo chmod 777 main.c
The reason why it is stuck is because of ctrl+z. This is not a normal shutdown or a forced shutdown. It is a background execution. If you open this program without closing it, there will definitely be problems. If you want to force close, use ctrl+c.
1. Add permissions, sudo gedit main.c
2. Modify permissions: sudo chmod 777 main.c
3. Or edit directly with vim. There is a vim called vim, which is vim with root permissions
4. The easiest thing is to switch directly to root
Give the
sudo
command to try to speed up:Then try again