LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2008, 07:44 AM   #1
ashwin_think
Member
 
Registered: Aug 2007
Posts: 35

Rep: Reputation: 15
Question shutdown command


HI,

Can anyone tell me how I can use the shutdown command so I can shutdown my linux system after 2 hours?

Please help me...

Thanks.

Ashwin.
 
Old 07-17-2008, 07:52 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
shutdown -t

For details on this (or any other command), look at the man page---e.g. "man shutdown".
 
Old 07-18-2008, 02:47 AM   #3
ashwin_think
Member
 
Registered: Aug 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Lightbulb

Hey,

i know the the shutdown man help on shell... but I don't know how to pass the argument for shutdown command which shutdown the system after particular time stamp.....

Please let me know the exact argument for shutdown command after 2 hours...

Thanks.
 
Old 07-18-2008, 03:02 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
http://linux.about.com/od/commands/l...l8_shutdow.htm

Look at this
 
Old 07-18-2008, 03:12 AM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
from man shutdown
Quote:
The time argument can have different formats. ... Second, it can be in the format +m, in which m is the number of minutes to wait.
Quote:
Please let me know the exact argument for shutdown command after 2 hours...
shutdown +120
 
Old 07-18-2008, 03:13 AM   #6
Vit77
Member
 
Registered: Jun 2008
Location: Toronto, Canada
Distribution: SuSE, RHEL, Mageia
Posts: 132

Rep: Reputation: 17
Exact command to halt you box in 120 minutes:

shutdown -h +120
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shutdown command manoj.linux AIX 3 09-17-2007 02:37 AM
shutdown command DR.V Red Hat 2 12-10-2005 08:32 PM
shutdown command DR.V Linux - Newbie 10 12-06-2005 05:40 AM
shutdown command xviddivxoggmp3 Red Hat 5 05-12-2004 05:48 PM
shutdown command nelly_boy Linux - Software 11 08-03-2003 07:04 AM


All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration