trap
Execute a command when the shell receives a signal. Syntax trap [-lp] [[arg] sigspec ...] Key -p Display signal commands (or trap commands for sigspec) -l Print a list of signal names and their corresponding numbers. arg The command to … Continued