"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

 About This Book

 Introduction to Ubuntu Systems

 GNOME - Desktop Interface and Environment

 Shell - The Command-Line Interpreter

 Process Management

 Memory Management

 Files and Directories

 APT (Advanced Package Tool)

 Network Connection on Ubuntu

 Internet Networking Tools

 SSH Protocol and ssh/scp Commands

Administrative Tasks

 "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

 "last/lastb" - Review Login History

 References

 Full Version in PDF/EPUB