Edit the Ctrl – Alt – Del Action in Ubuntu, Fedora and openSUSE

The Linux users that migrated from Windows know best about the Ctrl – Alt – Del key combination. In Linux Systems, you can set Ctrl – Alt – Del to do whatever you want it to do.

To set this, edit the /etc/inittab file. This works on Ubuntu, Debian, Fedora, openSUSE and other Linux distros.

The ctrlaltdel line from the /etc/inittab file:
$ grep ctrlaltdel /etc/inittab
ca::ctrlaltdel:/sbin/shutdown -r -t 4 now

To disable the Ctrl – Alt – Del action, comment the corespondent line (or delete it):

# ca::ctrlaltdel:/sbin/shutdown -r -t 4 now

To modify the Ctrl – Alt – Del action, replace /sbin/shutdown and its arguments with the new command:

ca::ctrlaltdel:/path/to/script_or_command [arguments here]

To apply the changes, type this in the terminal:

# init q

Or reboot the Linux System.

Tagged with: , , , , , , ,
Posted in The Linux and Unix Articles!
2 comments on “Edit the Ctrl – Alt – Del Action in Ubuntu, Fedora and openSUSE
  1. Blue Deep Loveind Your Blue Bridesmaid says:

    Very good info can be found on this web site.

  2. Robert Lang says:

    Since OpenSuse 12.1 this setting is not in inittab anymore – it is simply ignored!
    Does anyone know where in systemd to place this setting now?

Leave a Reply

Your email address will not be published. Required fields are marked *




Subscribe to get the latest Linux news and how to guides directly on your e-mail!