CmdID

CmdID / Commands

trap

Execute a command upon an event. tldr-pages

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

List the commands and the names of the expected events

Execute a command when a signal is received

trap 'echo "Caught signal SIGHUP"' [HUPIdentify

Remove commands

trap - [HUP [INTIdentify

List the available event names (e.g. SIGWINCH)

trap -lIdentify

List the commands and the names of the expected events

Execute a command when a signal is received

trap 'echo "Caught signal SIGHUP"' [1Identify

Remove commands

trap - SIGHUP SIGINT ...Identify

Ignore a signal

trap '' [2Identify

Execute a command when the current shell exits

trap 'echo "Initiating cleanup"' EXITIdentify

Execute a command before every single command

trap 'echo "Debug output"' DEBUGIdentify

Display help

help trapIdentify