SIGKILL: This kill signal is used to kill a running process. This will definitely kill the process.
SIGINT: This is the weakest signal among all other signals. This signal is used to stop the process and wait until user provide any input.
SIGTERM: This signal is normally used as a kill signal. It helps the process to exit cleanly.
SIGHUP: This signal works similar to SIGTERM but it has a specific role it will automatically send the process running in the terminal when user disconnects from the terminal.
SIGQUIT: This signal is the toughest of all the ignorable signal and this signal is used when the process is misbehaving and there is a requirement to kill it.
2) difference between each of the following signals:
SIGKILL is the most powerful signal and has the ability to kill any process running no matter in what condition the process in running.
SIGINT is considered weakest as already mentioned as it depends upon further user input, it makes the process goes to the halt state. This signal can be generated using CTRL + c key in the terminal.
SIGTERM is used to cleanly kill the process, the process may require time to free up the resources utilized and if it is critical application then it will ignore this signal.
SIGHUP is an involuntary signal which needs to be send explicitly, such that the process can try to save their state on the SIGHUP signal.
SIGQUIT is used to kill an misbehaving processes and while killing it will left a core dump file. The processes can set a handler and SIGQUIT is usually used when the problem is serious.