Schedule a reboot in ten minutes.
Send the reason Maintenance as a shutdown notice to logged-in users.
Which command is correct?
shutdown -r +10 MESSAGE schedules a reboot ten minutes from now and broadcasts the message to logged-in users.
Detailed explanation
shutdown -h +10 'Maintenance'Incorrect. -h requests halt or poweroff rather than reboot.
Incorrect. -h requests halt or poweroff rather than reboot.
shutdown -r 10 'Maintenance'Incorrect. 10 is not the relative +10-minute form in this command syntax.
Incorrect. 10 is not the relative +10-minute form in this command syntax.
shutdown -r +10 'Maintenance'Correct. It schedules a reboot in ten minutes with the Maintenance notice.
Correct. It schedules a reboot in ten minutes with the Maintenance notice.
reboot +10 'Maintenance'Incorrect. reboot does not provide this portable scheduling and notice form.
Incorrect. reboot does not provide this portable scheduling and notice form.
Try it yourself
An example you can run in a temporary verification environment.
shutdown --help 2>&1 | grep -E '[+]m|TIME|MESSAGE'Expected result
時刻とメッセージ引数の説明。予約は実行しないKey points
- -r means reboot
- +m means m minutes from now
- The message informs logged-in users
Notes
- Environment: Linux / systemd 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.