LinuxCommandLibrary

ctrlaltdel

control Ctrl+Alt+Del key combination behavior

TLDR

Get current setting

$ ctrlaltdel
copy
Set Ctrl+Alt+Del to reboot immediately (hard)
$ sudo ctrlaltdel hard
copy
Set Ctrl+Alt+Del to reboot gracefully (soft)
$ sudo ctrlaltdel soft
copy

SYNOPSIS

ctrlaltdel [hard|soft]

DESCRIPTION

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.

PARAMETERS

hard

Reboot immediately without preparation
soft
Send SIGINT to init for graceful reboot

CAVEATS

Requires root privileges to change the setting. Part of util-linux. On modern systemd systems, systemd handles the Ctrl+Alt+Del signal regardless of this setting.

HISTORY

This control exists from early Unix days when physical console access was common. The three-key combination was chosen to be difficult to press accidentally.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community