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

NAME

6       kill - terminate a process
7

SYNOPSIS

9       kill [-s signal|-p] [--] 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
24       If sig is 0, then no signal is sent, but error checking is  still  per‐
25       formed.
26

OPTIONS

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

SEE ALSO

63       bash(1), tcsh(1), kill(2), sigvec(2), signal(7)
64

AUTHOR

66       Taken from BSD 4.4.  The ability to translate process names to  process
67       ids was added by Salvatore Valente <svalente@mit.edu>.
68

AVAILABILITY

70       The  kill command is part of the util-linux-ng package and is available
71       from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
72
73
74
75Linux Utilities                 14 October 1994                        KILL(1)
Impressum