Schedule a standard, notifying shutdown ten minutes from now.
Which command is appropriate?
shutdown -h +10 schedules a halt ten minutes from now. A pending shutdown can commonly be canceled with shutdown -c.
Detailed explanation
poweroff +10Incorrect. poweroff does not use this standard relative scheduling form.
Incorrect. poweroff does not use this standard relative scheduling form.
halt --minutes 10Incorrect. halt --minutes is not the standard syntax.
Incorrect. halt --minutes is not the standard syntax.
sleep 10; poweroffIncorrect. A shell sleep does not provide the managed notification behavior.
Incorrect. A shell sleep does not provide the managed notification behavior.
shutdown -h +10Correct. shutdown -h +10 schedules the halt.
Correct. shutdown -h +10 schedules the halt.
Try it yourself
An example you can run in a temporary verification environment.
shutdown --helpExpected result
相対時刻指定のhelp。停止予約は行わないKey points
- +10
- Scheduled shutdown
- -h
Notes
- Environment: shutdown helpのみ
- 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.