1 .\" Copyright 1994 Salvatore Valente (svalente@mit.edu)
2 .\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu)
3 .\" May be distributed under the GNU General Public License
4 .TH KILL 1 "14 October 1994" "Linux Utilities" "Linux Programmer's Manual"
6 kill \- terminate a process
8 .BI "kill [ \-s " signal " | \-p ] [ \-a ] [ \-\- ] " "pid ..."
10 .BI "kill -l [ " signal " ]"
14 sends the specified signal to the specified process or process group.
15 If no signal is specified, the TERM signal is sent. The TERM signal
16 will kill processes which do not catch this signal. For other processes,
17 it may be necessary to use the KILL (9) signal, since this signal cannot
20 Most modern shells have a builtin kill function, with a usage rather similar
21 to that of the command described here. The `-a' and `-p' options,
22 and the possibility to specify pids by command name is a local extension.
24 If sig is 0, then no signal is sent, but error checking is still performed.
28 Specify the list of processes that
32 can be one of five things:
39 is larger than 0. The process with pid
44 All processes in the current process group are signaled.
47 All processes with pid larger than 1 will be signaled.
53 All processes in process group
55 are signaled. When an argument of the form `-n' is given,
56 and it is meant to denote a process group,
57 either the signal must be specified first, or the argument must be preceded
58 by a `--' option, otherwise it will be taken as the signal to send.
61 All processes invoked using that name will be signaled.
65 Specify the signal to send.
66 The signal may be given as a signal name or number.
69 Print a list of signal names. These are found in
70 .I /usr/include/linux/signal.h
73 Do not restrict the commandname-to-pid conversion to processes
74 with the same uid as the present process.
79 should only print the process id (pid)
80 of the named processes, and not send any signals.
88 Taken from BSD 4.4. The ability to translate process names to process
89 ids was added by Salvatore Valente <svalente@mit.edu>.
91 The kill command is part of the util-linux-ng package and is available from
92 ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.