LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-18-2012, 01:18 AM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,868

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:

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


Reply


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 02:17 AM.

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