Should I use kill 9?
For other processes, it may be necessary to use the KILL ( 9 ) signal, since this signal cannot be caught. Therefore, using the -9 switch ensures that the process is effectively killed. Even though a frozen or unresponsive process may not respond to a simple TERM signal, it will die when sent a KILL signal.
What is the difference between kill and kill 9 command?
Killing a process using kill will not have any side effects like unreleased memory because it was gracefully killed. Kill -9 works similarly but it doesn’t wait for the program to gracefully die. Kill -9 generates a SIGKILL signal which won’t check the state of the process and kills the process immediately.
What should I do if kill-9 does not work?
kill -9 ( SIGKILL) always works, provided you have the permission to kill the process. Basically either the process must be started by you and not be setuid or setgid, or you must be root. There is one exception: even root cannot send a fatal signal to PID 1 (the init process). However kill -9 is not guaranteed to work immediately.
Which is the same as kill-SIGKILL processID?
Both are same as kill -sigkill processID, kill -9 processID. Its basically for forced termination of the process.
What is the purpose of the-9 option in the command kill?
The command kill sends the specified signal to the specified process or process group. If no signal is specified, the TERM signal is sent. The TERM signal will kill processes which do not catch this signal. For other processes, it may be necessary to use the KILL (9) signal, since this signal cannot be caught.
What’s the difference between kill and kill 9?
Kill actually means send a signal. there are multiple signals you can send. kill -9 is a special signal. When sending a signal the application deals with it. if not the kernel deals with it. so you can trap a signal in your application. But I said kill -9 was special.