Modify Ctrl-Alt-Del Behavior in Linux

I hate the Ctrl-Alt-Del combination, maybe because it reminds me of the unpleasant days when I used other operating systems. If you want to modify it, then here is how to do this:

In Ubuntu

Open the file /etc/event.d/control-alt-deleteĀ  (You need supper user privileges)

You should see a line similar to this:

exec /sbin/shutdown -r now “Control-Alt-Delete pressed”

Which binds ctrl-alt-del to rebooting your computer. Change it to execute any other program you want. Of course you can disable it completely by commenting the whole file.

Other Distros (via Tips4Linux)

In other distros, open /etc/inittab.

You should see something like this:

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

To disable ctrl-alt-del, just comment this line. To bind it with other program, just replace “/sbin/shutdown -t1 -a -r now” with the program you want to execute.

Enjoy!

If you enjoyed this post, make sure you subscribe to my RSS feed!

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

No related posts.

Tags:

Saturday, March 21st, 2009 Linux

Leave a Reply

my email
my photo
Hi,
My name is Amir Watad. I have a BSc. in biomedical engineering from The Biomedical Engineering school , Technion , Israel, and a BSc. in electrical engineering from The Electrical Engineering school , Technion , Israel.
I'm a Verification Engineer in Mellanox Technologies Ltd.
I love Linux, the Command Line and the OpenSource Community.
I used to write Poems (Arabic) when I was able to find time for this.
March 2009
S M T W T F S
« Feb   May »
1234567
891011121314
15161718192021
22232425262728
293031  
SEO Powered by Platinum SEO from Techblissonline

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.