Reboot Linux after a kernel update.
Use normal service shutdown handling rather than cutting power.
Which command is appropriate?
reboot requests a managed system restart. Avoid force options during normal operation unless there is a specific recovery reason.
Detailed explanation
rebootCorrect. reboot initiates a normal system restart.
Correct. reboot initiates a normal system restart.
haltIncorrect. halt stops the system rather than restarting it.
Incorrect. halt stops the system rather than restarting it.
logoutIncorrect. logout ends a shell session only.
Incorrect. logout ends a shell session only.
ssh rebootIncorrect. ssh is the connection client, not a reboot command with this syntax.
Incorrect. ssh is the connection client, not a reboot command with this syntax.
Try it yourself
An example you can run in a temporary verification environment.
reboot --helpExpected result
rebootの使用法。再起動は実行しないKey points
- reboot
- Service shutdown
- Avoid force
Notes
- Environment: systemd systemctl互換reboot
- 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.