Linux Tutorials - Herong's Tutorial Examples - v5.45, 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/Linux command, that can be used to halt, power-off or reboot a Unix/Linux 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/Linux command:
halt = shutdown -H poweroff = shutdown -P reboot = shutdown -r
Table of Contents
Cockpit - Web Portal for Administrator
SELinux - Security-Enhanced Linux
SSH Protocol and ssh/scp Commands
Software Package Manager on CentOS - DNF and YUM
vsftpd - Very Secure FTP Daemon
LDAP (Lightweight Directory Access Protocol)
"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