|
|
1.1 root 1: .\" Copyright (c) 1980, 1990 The Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" Redistribution and use in source and binary forms are permitted provided
5: .\" that: (1) source distributions retain this entire copyright notice and
6: .\" comment, and (2) distributions including binaries display the following
7: .\" acknowledgement: ``This product includes software developed by the
8: .\" University of California, Berkeley and its contributors'' in the
9: .\" documentation or other materials provided with the distribution and in
10: .\" all advertising materials mentioning features or use of this software.
11: .\" Neither the name of the University nor the names of its contributors may
12: .\" be used to endorse or promote products derived from this software without
13: .\" specific prior written permission.
14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17: .\"
18: .\" @(#)kill.1 6.4 (Berkeley) 7/24/90
19: .\"
20: .Dd July 24, 1990
21: .Dt KILL 1
22: .Os BSD 4.4
23: .Sh NAME
24: .Nm kill
25: .Nd terminate or signal a process
26: .Sh SYNOPSIS
27: .Nm kill
28: .Op Fl signal_name
29: .Ar pid
30: \&...
31: .Nm kill
32: .Op Fl l
33: .Sh DESCRIPTION
34: The kill utility sends a signal to the process(es) specified
35: by each pid operand. It is used to kill runaway or misbegotten
36: processes, such as those
37: .Em backgrounded
38: with
39: .Sq Li \&& .
40: .Nm Kill
41: is intelligent about who owns a process.
42: .Pp
43: Options available:
44: .Pp
45: .Tw Ds
46: .Tp Fl signal_name
47: A symbolic signal name. To find out all the possible signal names
48: do a
49: .Li kill -l .
50: .Tp Fl l
51: Available signal names are listed and are as found in
52: .Pa /usr/include/signal.h ,
53: stripped of the common SIG prefix.
54: .Tp Fl signal_number
55: A (nonnegative) decimal integer, representing the signal
56: to be used instead of TERM as the sig argument in
57: the effective call to
58: .Xr kill 2 .
59: .Tp
60: .Pp
61: Some of the more commonly used signals with kill:
62: .Ds I
63: .Cw XXX TERM
64: .Cl -1 -1 (broadcast to all processes, super user only)
65: .Cl 0 0 (sh(1) only, signals all members of process group)
66: .Cl 2 INT (interupt)
67: .Cl 3 QUIT (quit)
68: .Cl 6 ABRT (abort)
69: .Cl 9 KILL (non-catchable non-ignorable kill)
70: .Cl 14 ALRM (alarm clock)
71: .Cl 15 TERM (software termination signal)
72: .Cw
73: .De
74: .Pp
75: .Nm Kill
76: is a built-in to
77: .Xr csh 1 ;
78: it allows job specifiers of the form ``%...'' as arguments
79: so process id's are not as often used as
80: .Nm kill
81: arguments.
82: See
83: .Xr csh 1
84: for details.
85: .Sh SEE ALSO
86: .Xr csh 1 ,
87: .Xr ps 1 ,
88: .Xr kill 2 ,
89: .Xr sigvec 2
90: .Sh HISTORY
91: A
92: .Nm kill
93: command appeared in Version 6 AT&T Unix.
94: .Sh BUGS
95: A replacement for
96: .Dq Li kill 0
97: for
98: .Xr csh 1
99: users should be provided.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.