Linux and Unix halt, poweroff and reboot
Quick links
About halt, poweroff and reboot
Syntax
Examples
Related
commands
Linux and Unix main page
About halt, poweroff and reboot
Stop the computer.
halt [-l] [-n] [-q] [-y]
or
halt [-n] [-w] [-d] [-f] [-i] [-p] [-h]
reboot [-n] [-w] [-d] [-f] [-i]
poweroff [-n] [-w] [-d] [-f] [-i] [-h]
| -d | Don't write the wtmp record. The -n flag implies -d. |
| -h | Put all harddrives on the system in standby mode just before halt or poweroff. |
| -i | Shut down all network interfaces just before halt or reboot. |
| -l | Suppress sending a message to the system log daemon, syslogd, about who executed halt . |
| -n | Prevent the sync before reboot or halt. |
| -p | When halting the system, do a poweroff. This is the default when halt is called as poweroff. |
| -q | Quick halt. No graceful shutdown is attempted. |
| -r | Force halt or reboot, don't call shutdown. |
| -y | Halt the system, even from a dialup terminal. |
| -w | Don't actually reboot or halt but only write the wtmp record (in the /var/log/wtmp file). |
halt
Set the computer to a mode that enables a user to turn off the computer.
poweroff
Stop the processor (if you have proper permission).
