halt man page

halt, poweroff, reboot — Halt, power-off or reboot the machine

TL;DR

halt

halt --reboot

Synopsis

halt [Options...]

poweroff [Options...]

reboot [Options...]

Description

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

Options

The following options are understood:

--help
Print a short help text and exit.
--halt
Halt the machine, regardless of which one of the three commands is invoked.
-p, --poweroff
Power-off the machine, regardless of which one of the three commands is invoked.
--reboot
Reboot the machine, regardless of which one of the three commands is invoked.
-f, --force
Force immediate halt, power-off, reboot. Do not contact the init system.
-w, --wtmp-only
Only write wtmp shutdown entry, do not actually halt, power-off, reboot.
-d, --no-wtmp
Do not write wtmp shutdown entry.
-n, --no-sync
Don't sync hard disks/storage media before halt, power-off, reboot.
--no-wall
Do not send wall message before halt, power-off, reboot.

Exit Status

On success, 0 is returned, a non-zero failure code otherwise.

Notes

These are legacy commands available for compatibility only.

See Also

systemd(1), systemctl(1), shutdown(8), wall(1)

Referenced By

fsck.minix(8), mkfs.minix(8), reboot(2), shutdown(8), sudo(8), systemd.directives(7), systemd.index(7), virt-p2v(1), vzctl(8).

poweroff(8) and reboot(8) are aliases of halt(8).

systemd 231 halt