The ctrl + alt + del key combination function is set in the/etc/inittab file. the iniitab file contains the following two lines: # TrapCTRL-ALT-DELETEca: ctrlaltdel: /sbin/shutdown-t3-rnow press ctrl + alt + del will restart the system, but there will be a delay of 3 seconds between sending alarm information to the process and killing the process signal. # TrapCTRL-ALT-DELETE # ca: ct
The ctrl + alt + del key combination function is set in the/etc/inittab file. the iniitab file contains the following two lines:
# Trap CTRL-ALT-DELETE
Ca: ctrlaltdel:/sbin/shutdown-t3-r now
Pressing ctrl + alt + del will restart the system, but the delay between sending alarm information to the process and killing the process signal will be 3 seconds.
# Trap CTRL-ALT-DELETE
# Ca: ctrlaltdel:/sbin/shutdown-t3-r now
When ctrl + alt + del is disabled, we can use the ctrlaltdel command to set the shutdown mode of ctrl + alt + del,
|
Parameters |
Description |
|
Hard |
Restart the system now |
|
Soft |
Sends the sigint (interrupt) signal to the init process, and the init process processes the shutdown operation. |