Linux command
systemctl-reboot 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Reboot
systemctl reboot
Example
systemctl reboot --firmware-setup
Force
systemctl reboot -f
Reboot
systemctl reboot --boot-loader-entry=[entry_id]
Schedule
systemctl reboot --when=+30min
说明
systemctl reboot restarts the system, gracefully stopping all services and unmounting filesystems before initiating a hardware reset. The --firmware-setup option sets an EFI variable that tells the firmware to enter setup mode on next boot, useful for accessing UEFI settings without needing to press a key at the right time.
参数
- -f, --force
- Skip graceful service shutdown
- --force --force (-ff)
- Immediate reboot without cleanup (dangerous)
- --firmware-setup
- Reboot into BIOS/UEFI firmware setup menu
- --no-wall
- Don't send wall message to users
- --boot-loader-menu= _TIMEOUT_
- Reboot into the boot loader menu, showing it for the specified timeout
- --boot-loader-entry= _ID_
- Reboot into a specific boot loader entry once (use `--boot-loader-entry=help` to list entries)
- --when= _TIMESTAMP_
- Schedule reboot at a specific time (use `--when=cancel` to cancel a scheduled reboot)
FAQ
What is the systemctl-reboot command used for?
systemctl reboot restarts the system, gracefully stopping all services and unmounting filesystems before initiating a hardware reset. The --firmware-setup option sets an EFI variable that tells the firmware to enter setup mode on next boot, useful for accessing UEFI settings without needing to press a key at the right time.
How do I run a basic systemctl-reboot example?
Run `systemctl reboot` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f, --force do in systemctl-reboot?
Skip graceful service shutdown