Linux "halt" Command Line Options and Examples
Halt, power-off or reboot the machine

halt, poweroff, reboot may be used to halt, power-off or reboot the machine..


Usage:

halt [OPTIONS...]


    poweroff [OPTIONS...]


    reboot [OPTIONS...]






Command Line Options:

--help
Print a short help text and exit.
halt --help ...
--halt
Halt the machine, regardless of which one of the three commands is invoked.
halt --halt ...
-p
Power-off the machine, regardless of which one of the three commands is invoked.
halt -p ...
--reboot
Reboot the machine, regardless of which one of the three commands is invoked.
halt --reboot ...
-f
Force immediate halt, power-off, or reboot. When specified once, this results in an immediate but clean shutdown by the systemmanager. When specified twice, this results in an immediate shutdown without contacting the system manager. See the descriptionof --force in systemctl(1) for more details.
halt -f ...
-w
Only write wtmp shutdown entry, do not actually halt, power-off, reboot.
halt -w ...
-d
Do not write wtmp shutdown entry.
halt -d ...
-n
Don't sync hard disks/storage media before halt, power-off, reboot.
halt -n ...
--no-wall
Do not send wall message before halt, power-off, reboot.EXIT STATUSOn success, 0 is returned, a non-zero failure code otherwise.NOTESThese commands are implemented in a way that preserves compatiblity with the original SysV commands. systemctl(1) verbs halt,poweroff, reboot provide the same functionality with some additional features.
halt --no-wall ...