UNIX/LINUX Command – kill


kill—Terminate a process


kill [ –s signal | –p ] [-a]pid …
kill -l [ signal ]


kill sends the specified signal to the specified process. If no signal is specified, the TERM signal is sent. The TERM signal will kill processes that do not catch this signal. For other processes, if may be necessary to use the KILL(9) signal because this signal cannot be caught.

Most modern shells have a built-in kill function.


pid … Specify the list of processes that kill should signal. Each pid can be a process ID, or a process name.

Options Description
-s Specify the signal to send. The signal may be given as a signal name or number.
-p Specify that kill should only print the process ID (pid) of the named process, and should not send it a signal.
-l Print a list of signal names. These are found in /usr/include/linux/signal.h.

Related Articles