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 - 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 03-13-2008, 03:45 PM   #1
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
Smile reboot [ redhat]


i would like to know is there any way to reboot/shutdown my pc in seconds ?
i m using rhel 5.
 
Old 03-13-2008, 04:08 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by geniushasan View Post
i would like to know is there any way to reboot/shutdown my pc in seconds ?
i m using rhel 5.
Root can reboot your computer by issuing the command:

shutdown -r now

How long it takes to shutdown and reboot varies a lot from one machine to another.

------------------
Steve Stites
 
Old 03-14-2008, 04:39 PM   #3
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317

Original Poster
Blog Entries: 1

Rep: Reputation: 35
usually reboot or 'shutdown now 'takes a single sec to activate the command
shutdown -h -t time 1
the above command usually shutdown pc in 1 minute i wanted to shutdown it down in 15 secs ?
 
Old 03-14-2008, 04:51 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by geniushasan View Post
usually reboot or 'shutdown now 'takes a single sec to activate the command
shutdown -h -t time 1
the above command usually shutdown pc in 1 minute i wanted to shutdown it down in 15 secs ?
Sorry, I misinterpreted your question to mean that you wanted a fast reboot. If you want 15 seconds to elapse between issuing the shutdown command and it taking effect then use:

shutdown -r -t 15

-------------------
Steve Stites
 
Old 03-15-2008, 05:42 AM   #5
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317

Original Poster
Blog Entries: 1

Rep: Reputation: 35
shutdown -r -t 15
doesnt work.
 
Old 03-15-2008, 08:26 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by geniushasan View Post
shutdown -r -t 15
doesnt work.
You really should have read the output from shutdown:

Usage: shutdown [-akrhHPfnc] [-t secs] time [warning message]
-a: use /etc/shutdown.allow
-k: don't really shutdown, only warn.
-r: reboot after shutdown.
-h: halt after shutdown.
-P: halt action is to turn off power.
-H: halt action is to just halt.
-f: do a 'fast' reboot (skip fsck).
-F: Force fsck on reboot.
-n: do not go through "init" but go down real fast.
-c: cancel a running shutdown.
-t secs: delay between warning and kill signal.
** the "time" argument is mandatory! (try "now") **
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHat - Apache Reboot fellsin Red Hat 3 01-26-2005 06:28 PM
After new install of RedHat only L after reboot monta2 Linux - Newbie 3 08-26-2003 10:45 PM
Remote Reboot -Linux Redhat 7.3 dolvmin Linux - Software 6 08-26-2003 08:31 PM
redhat won't reboot also doesn't unmount drives Smerk Linux - Distributions 3 03-24-2003 12:21 AM
RedHat 7.2 reboot problem andrey Linux - Distributions 2 03-27-2002 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:10 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