Linux command
ctrlaltdel 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Get
ctrlaltdel
Example
sudo ctrlaltdel hard
Example
sudo ctrlaltdel soft
说明
ctrlaltdel controls the kernel's behavior when Ctrl+Alt+Del is pressed on the console. The setting determines whether the system reboots immediately or allows processes to shut down gracefully. With "hard", the system reboots immediately. With "soft", SIGINT is sent to PID 1 (init/systemd), which handles a graceful shutdown.
参数
- hard
- Reboot immediately without preparation
- soft
- Send SIGINT to init for graceful reboot
FAQ
What is the ctrlaltdel command used for?
ctrlaltdel controls the kernel's behavior when Ctrl+Alt+Del is pressed on the console. The setting determines whether the system reboots immediately or allows processes to shut down gracefully. With "hard", the system reboots immediately. With "soft", SIGINT is sent to PID 1 (init/systemd), which handles a graceful shutdown.
How do I run a basic ctrlaltdel example?
Run `ctrlaltdel` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does hard do in ctrlaltdel?
Reboot immediately without preparation