Ubuntu Tutorials - Herong's Tutorial Examples - v1.25, by Herong Yang
"shutdown" and "halt/poweroff/reboot" Commands
This section provides a quick introduction of the 'shutdown' command, and its alias commands 'halt', 'poweroff', and 'reboot'.
What Is "shutdown" Command? "shutdown" command is a standard Unix/Ubuntu command, that can be used to halt, power-off or reboot a Unix/Ubuntu computer. It has the following syntax:
shutdown [-HPrkc] [TIME] [WALL...] -H Halt the computer. -P Power-off (shutdown) the computer. -r Reboot the computer. -k Send a message to all logged-in users only. -c Cancel the pending "shutdown" event. TIME hh:mm +m, or "now". WALL Message text to be sent out
Examples of "shutdown" commands:
sudo shutdown –r now sudo shutdown –r 0 sudo shutdown –P +60 "System is going down in 60 minutes!"
What Is "halt/poweroff/reboot" Command? "halt/poweroff/reboot" command is an alias command for a specific flavor of the the "shutdown" Unix/Ubuntu command:
halt = shutdown -H poweroff = shutdown -P reboot = shutdown -r
Table of Contents
Introduction to Ubuntu Systems
GNOME - Desktop Interface and Environment
Shell - The Command-Line Interpreter
SSH Protocol and ssh/scp Commands
"systemctl status/start/stop/enable/disable" Commands
►"shutdown" and "halt/poweroff/reboot" Commands
Move /home Directory to New Partition
Move All Users to a New System