Is there a way to catch or stop a Linux shut down after a reboot, halt or shutdown command has been entered?

sudo shutdown -r +10

I should now have 10 minutes before the computer shuts down. If I change my mind and decide that I still want to continue running, how could I stop the shut down?

link|improve this question

feedback

1 Answer

up vote 7 down vote accepted
sudo shutdown -c

This will cancel a scheduled shutdown. You don't have to run it in the same terminal as the original shutdown request.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.