trap [function name] <reason>
Automatically execute commands after receiving signals by processes or the operating system
Arguments
Name | Description |
---|---|
function name | |
reason |
Options
Name | Description |
---|---|
--print, -p | Prints all defined signal handlers |
--help, -h | Displays help about using this command |