]>
Commit | Line | Data |
---|---|---|
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 | |
6 | kill \- 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 | |
13 | sends the specified signal to the specified process. If no signal is | |
14 | specified, the TERM signal is sent. The TERM signal will kill processes | |
15 | which do not catch this signal. For other processes, if may be necessary | |
16 | to use the KILL (9) signal, since this signal cannot be caught. | |
17 | ||
18 | Most modern shells have a builtin kill function. | |
19 | .SH OPTIONS | |
20 | .TP | |
21 | .BR "pid ..." | |
22 | Specify the list of processes that | |
23 | .B kill | |
24 | should signal. Each | |
25 | .I pid | |
fd6b7a7f KZ |
26 | can be one of four things. A |
27 | .I "process name" | |
28 | in which case processes called that will be signaled. | |
29 | .I n | |
30 | where | |
31 | .I n | |
32 | is larger than 0. The process with pid | |
33 | .I n | |
34 | will be signaled. | |
35 | .I -1 | |
36 | in which case all processes from MAX_INT to 2 will be signaled, | |
37 | as allowed by the issuing user. | |
38 | .I -n | |
39 | where | |
40 | .I n | |
41 | is larger than 1, in which case processes in process group | |
42 | .I n | |
43 | are signaled. IFF a negative argument is given the signal | |
44 | .I must | |
45 | be specified first, otherwise it will be taken as the signal to send. | |
6dbe3af9 KZ |
46 | .TP |
47 | .BR \-s | |
48 | Specify the signal to send. | |
49 | The signal may be given as a signal name or number. | |
50 | .TP | |
51 | .BR \-p | |
52 | Specify that | |
53 | .B kill | |
54 | should only print the process id | |
55 | .I (pid) | |
56 | of the named process, and should not send it a signal. | |
57 | .TP | |
58 | .BR \-l | |
59 | Print 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 | |
67 | Taken from BSD 4.4. The ability to translate process names to process | |
68 | ids was added by Salvatore Valente <svalente@mit.edu>. |