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!No related posts.
Leave a Reply
About Me
Tags
Categories
- Algorithms
- Bash
- BlackBerry
- Collaboration
- Command Line
- Cool Tricks
- Easter Eggs
- Ebooks
- Firefox
- Hardware
- Humor
- iPhone
- Linux
- Linux Development
- Linux Kernel
- Networks
- Open Knowledge
- Other
- Productivity
- Programming
- Regular Expressions
- Science
- Security
- Shell Scripts
- Short Posts
- Social Networks
- Thoughts
- Tools
- Vim
- Web Development
- Websites
Popular Posts
Calendar
Archives
- August 2010 (2)
- July 2010 (5)
- June 2010 (1)
- May 2010 (1)
- April 2010 (3)
- March 2010 (1)
- January 2010 (1)
- December 2009 (2)
- September 2009 (13)
- July 2009 (1)
- June 2009 (6)
- May 2009 (4)
- March 2009 (18)
- February 2009 (10)
- January 2009 (10)
- December 2008 (7)
- November 2008 (8)
- October 2008 (1)
- August 2008 (1)
- July 2008 (1)
- June 2008 (2)
