LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   cancelling "shutdown" command (https://www.linuxquestions.org/questions/linux-general-1/cancelling-shutdown-command-4175437645/)

newbiesforever 11-18-2012 01:18 AM

cancelling "shutdown" command
 
I just learned that if I enter "sudo shutdown -h -t time [interval]" in a terminal, closing the terminal will not cancel the shutdown. What, then, is the command to cancel the shutdown if I want to?

YJ Lee 11-18-2012 01:47 AM

The shutdown man pages say:

Code:

      -c
          Cancel a pending shutdown. This may be used cancel the effect of an
          invocation of shutdown with a time argument that is not +0 or now.

I suppose "sudo shutdown -c" will do the trick?


All times are GMT -5. The time now is 11:16 AM.