Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

signal

signal numbers

SignalValueActionComment
SIGHUP1TermHangup detected on controlling terminal or death of controlling process
SIGINT2TermInterrupt from keyboard
SIGKILL9TermKill signal
SIGTERM15TermTermination signal
SIGSTOP17,19StopStop the process
SIGCONT18,25ContContinue the process if stopped

signal handling

trap command can be used to catch signals and run a command when a signal is received.

trap 'echo "Caught signal"' SIGINT