Linux command
systemctl-kexec 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
systemctl kexec
Fall back
systemctl kexec --force
说明
systemctl kexec shuts down and reboots the system via kexec, which loads and boots directly into a new kernel without going through BIOS/UEFI firmware. This provides significantly faster reboots by skipping hardware initialization. A kexec kernel must be loaded beforehand (e.g. via `kexec -l`) or this command will fail. If no kernel is loaded, use `--force` to fall back to a normal reboot.
参数
- -f, --force
- Continue without a kexec kernel, performing a normal reboot instead. If specified twice, skip service shutdown and immediately reboot (may cause data loss).
FAQ
What is the systemctl-kexec command used for?
systemctl kexec shuts down and reboots the system via kexec, which loads and boots directly into a new kernel without going through BIOS/UEFI firmware. This provides significantly faster reboots by skipping hardware initialization. A kexec kernel must be loaded beforehand (e.g. via `kexec -l`) or this command will fail. If no kernel is loaded, use `--force` to fall back to a normal reboot.
How do I run a basic systemctl-kexec example?
Run `systemctl kexec` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f, --force do in systemctl-kexec?
Continue without a kexec kernel, performing a normal reboot instead. If specified twice, skip service shutdown and immediately reboot (may cause data loss).