About Linux FAQ

Browse More FAQs:

Reboot Linux System Command

Posted by Vivek Gite [Last updated: May 11, 2008]

Q. How do I reboot my Linux system? How do I reboot remote Linux system?

A. Linux comes with various utilities that allow a system administrator to reboot, halt or poweroff the system.

Reboot Linux command

You must login as root to reboot the system. Open the terminal and type any one of the following command to reboot the system (following is immediate reboot):
# /sbin/reboot
OR
# /sbin/shutdown -r now
You can also use sudo command under Ubuntu Linux:
$ sudo reboot
It is a good idea to provide notification to all logged-in usersthat the system is going down and, within the last five minutes of TIME, new logins are prevented. Type the following command:
# shutdown -r +5
Sample output:

Broadcast message from vivek@cluster.orarac1.nixcraft.com
        (/dev/pts/1) at 13:21 ...

The system is going down for reboot in 5 minutes!

TIME may have different formats, the most common is simply the word now which will bring the system down immediately. Other valid formats are +m, where m is the number of minutes to wait until shutting down and hh:mm which specifies the time on the 24hr clock.

How do I reboot remote Linux server?

Simply login as the root user using ssh command:
$ ssh root@remote-server.com /sbin/reboot

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.