How to restart Linux PC

Linux OS Topics
Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

How to restart Linux PC

Post by Saman » Tue Mar 27, 2012 6:43 am

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):

Code: Select all

# /sbin/reboot
OR

Code: Select all

# /sbin/shutdown -r now
You can also use sudo command under Ubuntu Linux:

Code: Select all

$ sudo reboot
It is a good idea to provide notification to all logged-in users that the system is going down and, within the last five minutes of TIME, new logins are prevented. Type the following command:

Code: Select all

# shutdown -r +5
SukhdeepMankoo
Lieutenant
Lieutenant
Posts: 92
Joined: Tue Oct 27, 2009 7:50 pm

Re: How to restart Linux PC

Post by SukhdeepMankoo » Fri Nov 09, 2012 9:51 pm

You can do the same thing using Command

init 6
Post Reply

Return to “Linux”