kill
send a signal to one or more processes
- Provided by: procps (Version: 2:4.0.6-3ubuntu1)
- Report a bug
send a signal to one or more processes
kill [-q value|--queue value] pid ...
kill -signal
[-q value|--queue value]
pid-or-pgid ...
kill -s signal
[-q value|--queue value]
pid-or-pgid ...
kill --signal signal
[-q value|--queue value]
pid-or-pgid ...
kill -l [signal]
kill --list [signal]
kill -L
kill --table
kill sends a signal to one or more processes by pid or pgid, a process or process group identifier. signal(7) explains the varieties and behavior of signals. kill's default signal is TERM. The -l and -L options list available signals. Particularly useful signals include HUP, INT, KILL, STOP, CONT, and 0. Specify signals by number, by name, or by name with a “SIG” prefix; for example, -9, -SIGKILL, and -KILL are equivalent. A negative operand selects a process group; see the PGID column in ps(1) command output. A pid of -1 is special; it indicates all processes except the kill process itself and init(8).
The -q option uses an alternative signaling method to to additionally transmit an integral value to a receiving process. If that process has installed a handler for the signal and specified the SA_SIGINFO flag to sigaction(2), then it can obtain this datum via the si_value field of the siginfo_t structure.
The shell (command-line interpreter) often has a built-in “kill” command. You may need to run the command described here as /bin/kill to override the shell built-in.
If you use a negative operand, specify a signal by name or number first so that kill can distinguish it from a process group. For example, the command “kill 123 -9” is ambiguous; it could mean to kill process 123 with signal 9, or to kill process 123 and process group 9 with the default signal.
kill(2), killall(1), nice(1), pkill(1), renice(1), signal(7), sigqueue(3), skill(1)
Please send bug reports to procps@freelists.org.