halt, poweroff, reboot − Halt, power−off or reboot the machine
halt [OPTIONS...] |
||
poweroff [OPTIONS...] |
||
reboot [OPTIONS...] |
halt, poweroff, reboot may be used to halt, power−off or reboot the machine.
The following options are understood:
−−help
Prints a short help text and exits.
−−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. Don't contact the init system.
−w, −−wtmp−only
Only write wtmp shutdown entry, don't actually halt, power−off, reboot.
−d, −−no−wtmp
Don't write wtmp shutdown entry.
−−no−wall
Don't send wall message before halt, power−off, reboot.
On success 0 is returned, a non−zero failure code otherwise.
These are legacy commands available for compatibility only.