]> git.ipfire.org Git - thirdparty/util-linux.git/blame - misc-utils/kill.1
Imported from util-linux-2.7.1 tarball.
[thirdparty/util-linux.git] / misc-utils / kill.1
CommitLineData
6dbe3af9
KZ
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"
5.SH NAME
6kill \- terminate a process
7.SH SYNOPSIS
8.BR "kill" " [ \-s signal | \-p ] " " [ -a ] " "pid ..."
9.br
10.B "kill -l [ signal ]"
11.SH DESCRIPTION
12.B kill
13sends the specified signal to the specified process. If no signal is
14specified, the TERM signal is sent. The TERM signal will kill processes
15which do not catch this signal. For other processes, if may be necessary
16to use the KILL (9) signal, since this signal cannot be caught.
17
18Most modern shells have a builtin kill function.
19.SH OPTIONS
20.TP
21.BR "pid ..."
22Specify the list of processes that
23.B kill
24should signal. Each
25.I pid
fd6b7a7f
KZ
26can be one of four things. A
27.I "process name"
28in which case processes called that will be signaled.
29.I n
30where
31.I n
32is larger than 0. The process with pid
33.I n
34will be signaled.
35.I -1
36in which case all processes from MAX_INT to 2 will be signaled,
37as allowed by the issuing user.
38.I -n
39where
40.I n
41is larger than 1, in which case processes in process group
42.I n
43are signaled. IFF a negative argument is given the signal
44.I must
45be specified first, otherwise it will be taken as the signal to send.
6dbe3af9
KZ
46.TP
47.BR \-s
48Specify the signal to send.
49The signal may be given as a signal name or number.
50.TP
51.BR \-p
52Specify that
53.B kill
54should only print the process id
55.I (pid)
56of the named process, and should not send it a signal.
57.TP
58.BR \-l
59Print a list of signal names. These are found in
60.I /usr/include/linux/signal.h
61.SH "SEE ALSO"
62.BR bash (1),
63.BR tcsh (1),
64.BR kill (2),
65.BR sigvec (2)
66.SH AUTHOR
67Taken from BSD 4.4. The ability to translate process names to process
68ids was added by Salvatore Valente <svalente@mit.edu>.