Wednesday 29 February 2012

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)
















No comments:

Post a Comment