halt
system managementLinux/Unix
The halt command is one of the most frequently used commands in Linux/Unix-like operating systems. halt Stop the system
Quick Reference
Command Name:
halt
Category:
system management
Platform:
Linux/Unix
Basic Usage:
halt [options] [arguments]
Common Use Cases
Syntax
halt [options]
Options
Option | Description |
---|---|
-d, --no-wtmp |
Don't write a wtmp record |
-f, --force |
Force halt, don't call shutdown |
-h, --help |
Display help message and exit |
-n, --no-sync |
Don't sync before halting |
-p, --poweroff |
Turn the machine off (as with poweroff) |
-w, --wtmp-only |
Just write the wtmp record, don't actually halt the system |
--no-wall |
Don't send wall message before halting |
Examples
How to Use These Examples
The examples below show common ways to use the halt
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
sudo halt