6

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?

1 Answer 1

10
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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .