How to force quit the files program [closed]

Cant use pkill or xkill, so please answer my question fast


Solution 1:

Try using pkill -9, the -9 will forcefully exit the hanged app, instead of waiting for it to gracefully exit. Be careful though, this may lead to data loss in case the program was working on some files. Don't use this option by default unless the program has hung as in question.

-9 stands for SIGKILL. It's one of POSIX signals that can be sent to the processes. When you press Ctrl-C in your console, normally SIGINT is sent (interrupt), this allows program to run any custom code to stop gracefully. On the other hand SIGKILL leaves no such chance and terminates the process immediately, which is useful in case the process is hung and won't respond to signals like SIGINT.