Linux command
reboot 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Reboot
reboot
Power off
reboot --poweroff
Halt
reboot --halt
Force
reboot --force
Example
reboot --wtmp-only
Example
reboot --no-wall
说明
reboot restarts the machine. It communicates with the system manager (systemd) to perform the reboot. The command accepts the same options as the related poweroff and halt commands.
参数
- --halt
- Halt the machine instead of rebooting
- -p, --poweroff
- Power off the machine instead of rebooting
- --reboot
- Reboot the machine (default action)
- -f, --force
- Force immediate reboot without contacting the init system
- -w, --wtmp-only
- Only write the wtmp shutdown entry, do not actually reboot
- -d, --no-wtmp
- Do not write a wtmp shutdown entry
- -n, --no-sync
- Do not sync hard disks before reboot
- --no-wall
- Do not send wall message before reboot
FAQ
What is the reboot command used for?
reboot restarts the machine. It communicates with the system manager (systemd) to perform the reboot. The command accepts the same options as the related poweroff and halt commands.
How do I run a basic reboot example?
Run `reboot` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --halt do in reboot?
Halt the machine instead of rebooting