Kill command on Linux (send signals)
The kill command in Linux sends signals to processes.
It is generally used to terminate the execution of processes identified by your PID.
If no specific signal is passed as a parameter, kill will send the SIGTERM (15) signal to end the process in an elegant manner.
In this example the kill forces the web server identified by PID 1953 to read its configuration file again:
It abruptly terminates the web service processes with the 1953 and 1954 PIDs:
Kill’s -l option provides a list of signals and their respective codes:
A command that makes it easy to send signals to processes that have several child processes is killall.
Learn much more about Linux in our online course. You can register here. If you already have an account, or want to create one, just log in or create your user here.
Did you like it?
Share