Commands to turn off, restart, and shutdown Linux Linux server/computer
Linux offers several ways to shutdown and reboot your computer with additional options. See the lists below for the differences.
Commands to turn off, restart, and shutdown Linux Linux server/computer
Linux offers several ways to shutdown and reboot your computer with additional options. See the lists below for the differences.
milly 9:04 pm on January 30, 2010
You need to login as root or use “sudo” command to run the following commands.
Set the computer to a mode that enables a user to manually turn off the computer:
/sbin/haltShutdown and poweroff the computer:
/sbin/poweroffRestart the computer:
/sbin/rebootRestart the computer immediately:
/sbin/shutdown -r nowShutdown the computer immediately:
/sbin/shutdown nowJust a note. Personally, I use “shutdown” command to do all the job.