xref: /original-bsd/bin/kill/kill.1 (revision b5fdb4ed)
1.\" Copyright (c) 1980, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" %sccs.include.redist.man%
8.\"
9.\"     @(#)kill.1	6.7 (Berkeley) 06/27/91
10.\"
11.Vx
12.Dd
13.Dt KILL 1
14.Os
15.Sh NAME
16.Nm kill
17.Nd terminate or signal a process
18.Sh SYNOPSIS
19.Nm kill
20.Op Fl signal_name
21.Ar pid
22\&...
23.Nm kill
24.Op Fl signal_number
25.Ar pid
26\&...
27.Nm kill
28.Op Fl l
29.Sh DESCRIPTION
30The kill utility sends the TERM signal to the processes specified
31by the pid operand(s).
32.Pp
33Only the super-user may send signals to other users' processes.
34.Pp
35The options are as follows:
36.Pp
37.Tw Ds
38.Tp Fl l
39List the signal names.
40.Tp Fl signal_name
41A symbolic signal name specifying the signal to be sent instead of the
42default TERM.
43The
44.Fl l
45option displays the signal names.
46.Tp Fl signal_number
47A non-negative decimal integer, specifying the signal to be sent instead
48of the default TERM.
49.Tp
50.Pp
51Some of the more commonly used signals:
52.Ds I
53.Cw XXX TERM
54.Cl -1	-1	(broadcast to all processes, super-user only)
55.Cl 0	0	(sh(1) only, signals all members of process group)
56.Cl 2	INT	(interupt)
57.Cl 3	QUIT	(quit)
58.Cl 6	ABRT	(abort)
59.Cl 9	KILL	(non-catchable, non-ignorable kill)
60.Cl 14	ALRM	(alarm clock)
61.Cl 15	TERM	(software termination signal)
62.Cw
63.De
64.Pp
65.Nm Kill
66is a built-in to
67.Xr csh  1  ;
68it allows job specifiers of the form ``%...'' as arguments
69so process id's are not as often used as
70.Nm kill
71arguments.
72See
73.Xr csh  1
74for details.
75.Sh SEE ALSO
76.Xr csh 1 ,
77.Xr ps 1 ,
78.Xr kill 2 ,
79.Xr sigvec 2
80.Sh HISTORY
81A
82.Nm kill
83command appeared in Version 6 AT&T Unix.
84.Sh BUGS
85A replacement for
86.Dq Li kill 0
87for
88.Xr csh  1
89users should be provided.
90