我熟悉并在Linux中使用shutdown
,通常就是这样
> shutdown -h now
但有没有办法阻止关机的发生,比如说,如果我打算从现在开始关机10分钟,然后在5分钟后我发现我真的不想关机?
我熟悉并在Linux中使用shutdown
,通常就是这样
> shutdown -h now
但有没有办法阻止关机的发生,比如说,如果我打算从现在开始关机10分钟,然后在5分钟后我发现我真的不想关机?
You can use ps
to find the shutdown process and abort it, for example with ps|grep shutdown
.
替代的、不太吸引眼球的版本:
pkill shutdown
killall shutdown
kill `cat /var/run/shutdown.pid`