halt – stop the system

halt stops the system. On modern systems, use systemctl poweroff or shutdown instead.
Synopsis
halt [OPTIONS]
Examples
Halt the system
$ sudo halt
Force halt (no sync)
$ sudo halt -f
Modern Alternatives
systemctl (preferred)
$ sudo systemctl poweroff # Shutdown and power off
$ sudo systemctl halt # Halt only (no power off)
$ sudo systemctl reboot # Reboot
shutdown command
$ sudo shutdown -h now # Halt now
$ sudo shutdown -h +5 # Halt in 5 minutes
$ sudo shutdown -r now # Reboot now
$ sudo shutdown -c # Cancel scheduled shutdown
poweroff
$ sudo poweroff
halt vs poweroff
| Command | Effect |
|---|---|
halt | Stop system (may not power off) |
poweroff | Stop system and power off |
shutdown -h | Graceful shutdown + power off |
Tips
- Use shutdown: More graceful, warns users
- Use systemctl: Modern systemd way
- Virtual machines:
haltoften enough - Physical servers:
powerofforshutdownto power off






