May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Singnals in Linux

Singnals in Linux
Terminate or send a signal with kill or killall

# kill -s TERM 4712 ——– same as kill -15 4712
# killall -1 httpd ——– Kill HUP processes by exact name
# pkill -9 http ——– Kill TERM processes by (part of) name
# pkill -TERM -u www ——- Kill TERM processes owned by www
# fuser -k -TERM -m /home —— Kill every process accessing /home
(to umount)

Important signals are:

-1 HUP (hang up)
-2 INT (interrupt)
-3 QUIT (quit)
-9 KILL (non-catchable, non-ignorable kill)
-15 TERM (software termination signal)

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>