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.

Syntax

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]

-dDon't write the wtmp record. The -n flag implies -d.
-hPut all harddrives on the system in standby mode just before halt or poweroff.
-iShut down all network interfaces just before halt or reboot.
-lSuppress sending a message to the system log daemon, syslogd, about who executed halt .
-nPrevent the sync before reboot or halt.
-pWhen halting the system, do a poweroff. This is the default when halt is called as poweroff.
-qQuick halt. No graceful shutdown is attempted.
-rForce halt or reboot, don't call shutdown.
-yHalt the system, even from a dialup terminal.
-wDon't actually reboot or halt but only write the wtmp record (in the /var/log/wtmp file).

Examples

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).

Related commands

Shutdown