Search notes:

Bash built-in: trap

See also

Using trap … SIGINT to prevent a shell script from being stopped with Ctrl-C.
Bash builtins

Index