Stop Linux immediately for maintenance and use the standard shutdown procedure that notifies logged-in users.
You have the required administrative privileges.
Which command is appropriate?
shutdown -h now starts an immediate managed shutdown, allowing services to stop and filesystems to synchronize.
Detailed explanation
kill -9 1Incorrect. Killing PID 1 bypasses normal shutdown handling and can corrupt the system.
Incorrect. Killing PID 1 bypasses normal shutdown handling and can corrupt the system.
logoutIncorrect. logout ends the current shell only.
Incorrect. logout ends the current shell only.
shutdown -h nowCorrect. shutdown -h now requests an immediate halt through the normal shutdown path.
Correct. shutdown -h now requests an immediate halt through the normal shutdown path.
exit --poweroffIncorrect. exit ends a shell and does not power off the host.
Incorrect. exit ends a shell and does not power off the host.
Try it yourself
An example you can run in a temporary verification environment.
shutdown --helpExpected result
停止時刻と-h等の使用法。停止操作は実行しないKey points
- Managed shutdown
- -h
- now
Notes
- Environment: systemd systemctl互換shutdown
- 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.