Commit | Line | Data |
---|---|---|
3d86f03a KM |
1 | .\" Copyright (c) 1980 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
9efdb578 | 5 | .\" @(#)kill.1 6.2 (Berkeley) %G% |
3d86f03a | 6 | .\" |
2c9c5bb4 | 7 | .TH KILL 1 "" |
3d86f03a KM |
8 | .UC 4 |
9 | .SH NAME | |
10 | kill \- terminate a process with extreme prejudice | |
11 | .SH SYNOPSIS | |
12 | .B kill | |
13 | [ | |
14 | .BR \- sig | |
15 | ] | |
16 | processid ... | |
17 | .br | |
18 | .B kill | |
19 | .B \-l | |
20 | .SH DESCRIPTION | |
21 | .I Kill | |
22 | sends the TERM (terminate, 15) signal to the specified processes. | |
23 | If a signal name or number preceded by `\-' is given | |
24 | as first argument, that signal is sent instead of | |
25 | terminate | |
26 | (see | |
edebdd33 | 27 | .IR sigvec (2)). |
3d86f03a KM |
28 | The signal names are listed by |
29 | `kill \-l', and are as given in | |
30 | .I /usr/include/signal.h, | |
31 | stripped of the common SIG prefix. | |
32 | .PP | |
33 | The terminate signal will kill processes that do not catch the signal; | |
34 | `kill \-9 ...' is a sure kill, as the KILL (9) signal cannot be caught. | |
35 | By convention, if process number 0 is specified, all members | |
36 | in the process group (i.e. processes resulting from | |
37 | the current login) are signaled (but beware: this works only | |
38 | if you use | |
39 | .IR sh (1); | |
40 | not if you use | |
41 | .IR csh (1).) | |
9efdb578 JL |
42 | Negative process numbers also have special meanings; see |
43 | .IR kill (2) | |
44 | for details. | |
45 | .PP | |
3d86f03a KM |
46 | The killed processes must belong |
47 | to the current user unless | |
48 | he is the super-user. | |
49 | .PP | |
3d86f03a KM |
50 | The process number of an asynchronous process |
51 | started with `&' is reported by the shell. | |
52 | Process numbers can also be found by using | |
9efdb578 | 53 | .IR ps (1). |
3d86f03a KM |
54 | .I Kill |
55 | is a built-in to | |
56 | .IR csh (1); | |
9efdb578 | 57 | it allows job specifiers of the form ``%...'' as arguments |
3d86f03a KM |
58 | so process id's are not as often used as |
59 | .I kill | |
60 | arguments. | |
61 | See | |
62 | .IR csh (1) | |
63 | for details. | |
64 | .SH "SEE ALSO" | |
edebdd33 | 65 | csh(1), ps(1), kill(2), sigvec(2) |
3d86f03a | 66 | .SH BUGS |
9efdb578 | 67 | A replacement for ``kill 0'' |
3d86f03a KM |
68 | for |
69 | .IR csh (1) | |
70 | users should be provided. |