How to turn off and restart Linux ?




Shutting down, rebooting the computer from the shell or command line
Below is a list the commands that will enable a user to shut down, turn off, reboot, etc. their Linux computer from the command line. 
  • halt
  • poweroff
  • reboot
  • shutdown
Commands with options:

/sbin/halt [-n] [-w] [-d] [-f] [-i] [-p] [-h]
/sbin/reboot [-n] [-w] [-d] [-f] [-i]
/sbin/poweroff [-n] [-w] [-d] [-f] [-i] [-h]

OPTIONS

-n
Don't sync before reboot or halt.
-w
Don't actually reboot or halt but only write the wtmp record (in the /var/log/wtmp file).
-d
Don't write the wtmp record. The -n flag implies -d.
-f
Force halt or reboot, don't call shutdown
-i
Shut down all network interfaces just before halt or reboot.
-h
Put all harddrives on the system in standby mode just before halt or poweroff.
-p
When halting the system, do a poweroff. This is the default when halt is called as poweroff.

Simply, Reboot command restart the Linux servers.


Share your views...

0 Respones to "How to turn off and restart Linux ?"

Post a Comment

 

© 2010 Codes & Concepts All Rights Reserved Thesis WordPress Theme Converted into Blogger Template by Hack Tutors.info