November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

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>