I need help restarting/shutting down from the root command line, any commands I could use? I don't like hard resetting
Asked
Active
Viewed 2.5e+01k times
3 Answers
29
For shutting down:
sudo poweroff
(It immediately stops all the processes and shuts down the computer.)
For restarting:
sudo reboot
Edit: Once you are already running as a root you needn't type sudo.
See here for more options:
http://www.cyberciti.biz/faq/howto-reboot-linux/
http://www.cyberciti.biz/faq/howto-reboot-linux/
http://archive.oreilly.com/linux/cmd/cmd.csp?path=p/poweroff
Muzaffar
- 5,677
0
The answer for shutting down has already been given. You can reboot the system with
# reboot
UTF-8
- 5,910
- 10
- 34
- 68