Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-18-2012, 01:18 AM   #1
Senior Member
Registered: Apr 2006
Posts: 1,933

Rep: Reputation: 62
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?
Old 11-18-2012, 01:47 AM   #2
YJ Lee
LQ Newbie
Registered: Nov 2012
Location: Malaysia
Distribution: Arch Linux, CentOS
Posts: 3

Rep: Reputation: Disabled
The shutdown man pages say:

           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?
2 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Harddrive corrupts issueing command "shutdown -r now" using Sorcerer Linux Lokiswander Linux - Newbie 3 09-09-2010 10:17 AM
Better to use "at" command instead of time variable in shutdown? rjo98 Linux - Newbie 14 04-20-2010 12:54 PM
Sometimes "shutdown" command takes a lot of time vhn Linux - Embedded & Single-board computer 2 11-17-2009 10:20 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
How can I make the "shutdown" command available for all users? LinuxSeeker Linux - General 7 06-01-2005 05:40 PM

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration