kill

Table of Contents

kill reference

# List signal names
$ kill -l
HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2
$ kill -INT ${PID}
$ kill -INT -${PGID}
$ kill -INT 0  # current process group

# kill $PID's process group
# grep is used because some `ps` prints the header like PGID
$ kill -INT -$(ps -o pgid= $PID | grep -o '[0-9]*')