Start the normal shutdown procedure now and reboot afterward.
Which command is appropriate?
shutdown -r now starts an immediate managed shutdown and then reboots the system.
Detailed explanation
shutdown -h nowIncorrect. -h requests a halt rather than a reboot.
Incorrect. -h requests a halt rather than a reboot.
shutdown -c nowIncorrect. -c cancels a scheduled shutdown.
Incorrect. -c cancels a scheduled shutdown.
shutdown -r nowCorrect. shutdown -r now requests an immediate reboot through the normal path.
Correct. shutdown -r now requests an immediate reboot through the normal path.
shutdown --target graphicalIncorrect. There is no standard shutdown --target graphical operation.
Incorrect. There is no standard shutdown --target graphical operation.
Try it yourself
An example you can run in a temporary verification environment.
shutdown --helpExpected result
-rと時刻指定のhelp。shutdownは実行しないKey points
- shutdown -r
- now
- Reboot
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.