kill Linux Command Cheatsheet

3049




kill Linux Command is used to send signals to running processes.

Syntax

kill [SIGNAL] PID

Examples

kill -9 3829 #=> kills process with id 3829

Options

kill -l command display all available options with kill

Note: Following are from Ubuntu 16.04

SignalDescription
1SIGHUP
2SIGINT
3SIGQUIT
4SIGILL
5SIGTRAP
6SIGABRT
7SIGBUS
8SIGFPE
9SIGKILL
10SIGUSR1
11SIGSEGV
12SIGUSR2
13SIGPIPE
14SIGALRM
15SIGTERM
16SIGSTKFLT
17SIGCHLD
18SIGCONT
19SIGSTOP
20SIGTSTP
21SIGTTIN
22SIGTTOU
23SIGURG
24SIGXCPU
25SIGXFSZ
26SIGVTALRM
27SIGPROF
28SIGWINCH
29SIGIO
30SIGPWR
31SIGSYS
34SIGRTMIN
35SIGRTMIN+1
36SIGRTMIN+2
37SIGRTMIN+3
38SIGRTMIN+4
39SIGRTMIN+5
40SIGRTMIN+6
41SIGRTMIN+7
42SIGRTMIN+8
43SIGRTMIN+9
44SIGRTMIN+10
45SIGRTMIN+11
46SIGRTMIN+12
47SIGRTMIN+13
48SIGRTMIN+14
49SIGRTMIN+15
50SIGRTMAX-14
51SIGRTMAX-13
52SIGRTMAX-12
53SIGRTMAX-11
54SIGRTMAX-10
55SIGRTMAX-9
56SIGRTMAX-8
57SIGRTMAX-7
58SIGRTMAX-6
59SIGRTMAX-5
60SIGRTMAX-4
61SIGRTMAX-3
62SIGRTMAX-2
63SIGRTMAX-1
64SIGRTMAX

Note: Following are from MacOS

SignalDescription
1SIGHUP
2SIGINT
3SIGQUIT
4SIGILL
5SIGTRAP
6SIGABRT
7SIGEMT
8SIGFPE
9SIGKILL
10SIGBUS
11SIGSEGV
12SIGSYS
13SIGPIPE
14SIGALRM
15SIGTERM
16SIGURG
17SIGSTOP
18SIGTSTP
19SIGCONT
20SIGCHLD
21SIGTTIN
22SIGTTOU
23SIGIO
24SIGXCPU
25SIGXFSZ
26SIGVTALRM
27SIGPROF
28SIGWINCH
29SIGINFO
30SIGUSR1
31SIGUSR2