Linux halt command
If the system runlevel is 0 or 6, the Linux halt command shuts down the system; otherwise, it is replaced by the shutdown command (with the -h parameter).
Permission required: system administrator.
Syntax
halt [-n] [-w] [-d] [-f] [-i] [-p]
Parameter Description:
- -n : Do not write memory data back to disk before shutting down
- -w : Does not actually shut down; it only writes the record to the /var/log/wtmp file
- -d : Do not write the record to the /var/log/wtmp file (the -n parameter includes -d) -f : Force shutdown without calling the shutdown command
- -i : Stop all network-related devices before shutting down
- -p : When shutting down, also perform the poweroff action
Example
Shut down the system
# halt
Shut down the system and turn off the power
# halt -p
Shut down the system without leaving a record
# halt -d
Linux Command Reference