LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06: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, 06:52 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
shutdown -t

For details on this (or any other command), look at the man page---e.g. "man shutdown".
 
Old 07-18-2008, 01: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, 02:02 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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

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

Rep: Reputation: 55
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, 02: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



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 01:37 AM
shutdown command DR.V Red Hat 2 12-10-2005 07:32 PM
shutdown command DR.V Linux - Newbie 10 12-06-2005 04:40 AM
shutdown command xviddivxoggmp3 Red Hat 5 05-12-2004 04:48 PM
shutdown command nelly_boy Linux - Software 11 08-03-2003 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 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
Open Source Consulting | Domain Registration