manual page distributed with 4.1BSD
[unix-history] / usr / src / bin / kill / kill.1
CommitLineData
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.\"
2c9c5bb4 5.\" @(#)kill.1 6.1 (Berkeley) %G%
3d86f03a 6.\"
2c9c5bb4 7.TH KILL 1 ""
3d86f03a
KM
8.UC 4
9.SH NAME
10kill \- terminate a process with extreme prejudice
11.SH SYNOPSIS
12.B kill
13[
14.BR \- sig
15]
16processid ...
17.br
18.B kill
19.B \-l
20.SH DESCRIPTION
21.I Kill
22sends the TERM (terminate, 15) signal to the specified processes.
23If a signal name or number preceded by `\-' is given
24as first argument, that signal is sent instead of
25terminate
26(see
edebdd33 27.IR sigvec (2)).
3d86f03a
KM
28The signal names are listed by
29`kill \-l', and are as given in
30.I /usr/include/signal.h,
31stripped of the common SIG prefix.
32.PP
33The 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.
35By convention, if process number 0 is specified, all members
36in the process group (i.e. processes resulting from
37the current login) are signaled (but beware: this works only
38if you use
39.IR sh (1);
40not if you use
41.IR csh (1).)
42The killed processes must belong
43to the current user unless
44he is the super-user.
45.PP
3d86f03a
KM
46The process number of an asynchronous process
47started with `&' is reported by the shell.
48Process numbers can also be found by using
49.I Kill
50is a built-in to
51.IR csh (1);
52it allows job specifiers ``%...''
53so process id's are not as often used as
54.I kill
55arguments.
56See
57.IR csh (1)
58for details.
59.SH "SEE ALSO"
edebdd33 60csh(1), ps(1), kill(2), sigvec(2)
3d86f03a
KM
61.SH BUGS
62An option to kill process groups ala
63.IR killpg (2)
64should be provided; a replacement for ``kill 0''
65for
66.IR csh (1)
67users should be provided.