In this article, we’ll break down how the shutdown, poweroff, halt, and reboot commands differ in Linux. We’ll look at what each command actually does and what options they offer. If you’re just getting started with Linux server administration, it’s important to get familiar with these commands — they’re essential for managing your system safely and reliably.
This command lets you schedule when the system should shut down. You can use it not only to turn off the machine but also to reboot it or bring all processes to a stop.
The first argument usually specifies the time — for example, now (immediately) or an exact time in the format hh:mm. You can also add a message that will be displayed to all logged-in users. That’s handy when you’re not the only person using the server.
Changed your mind? You can cancel a scheduled shutdown with:
shutdown -c
Quick flag overview:
→ -r — reboot after shutting down
→ -h — halt or power off (depending on the system)
→ -c — cancel a scheduled shutdown
→ -k — send a warning to users, but don’t actually shut down
halt tells the system to stop the CPU. In most cases, this doesn’t turn off the power — the machine just freezes. This can be useful for maintenance tasks. However, depending on your system’s configuration, halt might also shut the system down completely.
This one sends an ACPI (Advanced Configuration and Power Interface) signal to cut the power and shut the system down entirely. In other words, it turns the machine off completely.
As the name suggests, reboot simply restarts the system. Useful when you need to apply updates or troubleshoot.
If you’re working with a modern Linux distribution that uses systemd (and that includes most popular ones like Ubuntu, Debian, Fedora, Arch, etc.), it’s better to use systemctl. These commands are closely integrated with the system service manager and tend to behave more predictably.
Examples:
systemctl poweroff
systemctl reboot
systemctl halt
These systemctl commands are considered best practice when dealing with systemd-based systems.
Apply the discount by inserting the promo code in the special field at checkout: