Stop a systemd system normally and power off compatible hardware.
This is not a reboot or suspend operation.
Which command is appropriate?
systemctl poweroff stops services and handles filesystems before requesting a hardware power-off.
Detailed explanation
systemctl haltIncorrect. halt stops the operating system but does not necessarily request hardware power-off.
Incorrect. halt stops the operating system but does not necessarily request hardware power-off.
systemctl poweroffCorrect. poweroff performs an orderly shutdown and power-off.
Correct. poweroff performs an orderly shutdown and power-off.
systemctl hibernateIncorrect. hibernate saves state for a later resume.
Incorrect. hibernate saves state for a later resume.
systemctl rebootIncorrect. reboot restarts the system instead of powering it off.
Incorrect. reboot restarts the system instead of powering it off.
Try it yourself
An example you can run in a temporary verification environment.
systemctl --help | grep -E 'poweroff|Shut down and power-off'Expected result
poweroffの説明。実際の電源断は行わないKey points
- poweroff requests power-down
- halt has a different final state
- hibernate is suspend-to-disk
Notes
- Environment: Linux / systemd 255以降
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.