Forrest logo
back to the halt tool

halt:tldr:284a0

halt: Power off the system (same as `poweroff`).
$ halt --poweroff
try on your machine

The command "halt --poweroff" is used to turn off a computer or server completely and power it off. It is often used in Linux and Unix-based operating systems.

When the "halt" command is executed, it initiates a graceful shutdown of the system. It stops all running processes, unmounts file systems, and prepares the system for shutdown. However, by default, it does not actually power off the machine. Instead, it brings the system to a halted state where it is safe to manually power it off.

By appending the "--poweroff" flag to the command, the system will not only halt but also power off the machine after completing the shutdown procedure. This is useful when you want to automate the shutdown process and have the system shut down entirely without requiring manual intervention to power it off.

Overall, "halt --poweroff" is a command that safely shuts down a computer or server and powers it off completely if the "--poweroff" flag is specified.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the halt tool