Is there a command to view all the signals on a Ubuntu machine? I'm using a bash shell.
You can use kill -l
to obtain a list (same as trap -l
, at least on my system).
This command can also be used with an argument, such as kill -l SIGNAL
, where SIGNAL is either a signal number (in which case the command will output its name), or a signal name (such as SIGHUP), in which case the command will output its number.
You can use the trap
builtin:
trap -l
From help trap
:
-l
print a list of signal names and their corresponding numbers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With