Possible to abort shutdown on Linux?

David picture David · Feb 8, 2009 · Viewed 69.6k times · Source

I'm familiar with and use shutdown in Linux, and typically just do

> shutdown -h now

But is there a way to stop shutdown from happening, say if I aim to shutdown 10 minutes from now and then in 5 minutes time I discover I really don't want to shut down?

Answer

chaos picture chaos · Feb 8, 2009

shutdown -c  is "cancel shutdown" on reasonably recent shutdowns.

The syntax also supports shutdown -c <message> for announcement purposes, so that's handy if other people use the machine.