1KILL(1)                    Linux Programmer's Manual                   KILL(1)
2
3
4

NAME

6       kill - terminate a process
7

SYNOPSIS

9       kill [ -s signal | -p ] [ -a ] [ -- ] pid ...
10       kill -l [ signal ]
11

DESCRIPTION

13       The command kill sends the specified signal to the specified process or
14       process group.  If no signal is specified, the  TERM  signal  is  sent.
15       The  TERM  signal  will  kill processes which do not catch this signal.
16       For other processes, it may be necessary to use the  KILL  (9)  signal,
17       since this signal cannot be caught.
18
19       Most  modern  shells  have a builtin kill function, with a usage rather
20       similar to that of the  command  described  here.  The  `-a'  and  `-p'
21       options, and the possibility to specify pids by command name is a local
22       extension.
23

OPTIONS

25       pid... Specify the list of processes that kill should signal.  Each pid
26              can be one of five things:
27
28
29              n      where n is larger than 0.  The process with pid n will be
30                     signaled.
31
32              0      All processes in the current process group are signaled.
33
34              -1     All processes with pid larger than 1 will be signaled.
35
36              -n     where n is larger than 1.  All processes in process group
37                     n  are  signaled.   When  an argument of the form `-n' is
38                     given, and it is meant to denote a process group,  either
39                     the  signal must be specified first, or the argument must
40                     be preceded by a `--' option, otherwise it will be  taken
41                     as the signal to send.
42
43              commandname
44                     All processes invoked using that name will be signaled.
45
46       -s signal
47              Specify the signal to send.  The signal may be given as a signal
48              name or number.
49
50       -l     Print  a  list  of   signal   names.    These   are   found   in
51              /usr/include/linux/signal.h
52
53       -a     Do  not  restrict the commandname-to-pid conversion to processes
54              with the same uid as the present process.
55
56       -p     Specify that kill should only print the process id (pid) of  the
57              named processes, and not send any signals.
58

SEE ALSO

60       bash(1), tcsh(1), kill(2), sigvec(2), signal(7)
61

AUTHOR

63       Taken  from BSD 4.4.  The ability to translate process names to process
64       ids was added by Salvatore Valente <svalente@mit.edu>.
65
66
67
68Linux Utilities                 14 October 1994                        KILL(1)
Impressum