GNU/Linux Command – KILL

kill — Sends a signal to processes.
Summary :
The command kill sends the specified signal to the specified process or process group. If no signal is specified, the TERM signal is sent. Signals are used for inter process communications.
Examples :
$ kill -l -- Print a list of signal names with numbers.  $ kill -l SIGIO -- Print the number for SIGIO signal.  $ kill -l 9 -- Print the Name for the Signal number 9.  $ kill 100 200 -- Send TERM signal to processes with PID 100 & 200.  $ kill -s 9 100 -- Send KILL signal to process with PID 100.  $ kill -n SIGKILL 100 -- Same as above  $ kill -SIGKILL 100 -- Same as above.  $ kill -9 100 -- Same as above.  $ kill -9 -1 -- Kill all my sessions. But Not the current one.

  1. Two kill commands are available. One is built-in SHELL (default) and 2nd is in /usr/bin/kill.
  2. We can use either Signal Name or Number.

Read : man kill, signal(7)

Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: