trap
-
trap: 接收到特定信号时要执行的命令
在 Linux 中,
trap命令是一个非常强大的内置命令,它允许你捕获并处理信号。简单来说,它的作用是指定当 shell 接收到特定信号时要执行的命令。
在 Linux 中,
trap命令是一个非常强大的内置命令,它允许你捕获并处理信号。简单来说,它的作用是指定当 shell 接收到特定信号时要执行的命令。
We use cookies and similar methods to recognise visitors and remember preferences. We also use them to measure campaign effectiveness and analyse site traffic.
By selecting 'Accept', you consent to the use of these methods by us and trusted third parties.
To find out more, read our privacy policy.