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.
shutdown -c nowIncorrect. -c cancels a scheduled shutdown.
shutdown -r nowCorrect. shutdown -r now requests an immediate reboot through the normal path.
shutdown --target graphicalIncorrect. 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のみ
- Use read-only commands or a disposable Linux instance when checking boot metadata.
- Exact unit names and command output can vary slightly by distribution.
Foundation review
Place the operation
The -r flag selects reboot while now controls when the shutdown transaction begins.
Check the side effect
Review logged-in users and scheduled work before sending an immediate shutdown request.