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..
Command Line Options:
Print a short help text and exit.
halt --help ...
Halt the machine, regardless of which one of the three commands is invoked.
halt --halt ...
Power-off the machine, regardless of which one of the three commands is invoked.
halt -p ...
Reboot the machine, regardless of which one of the three commands is invoked.
halt --reboot ...
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 ...
Only write wtmp shutdown entry, do not actually halt, power-off, reboot.
halt -w ...
Do not write wtmp shutdown entry.
halt -d ...
Don't sync hard disks/storage media before halt, power-off, reboot.
halt -n ...
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 ...