www.question-defense.com | Engage: Visit :: Login :: Register

A few weeks ago I wrote a article on disabling the caps lock key in Windows.  I decided since I have been writing some Linux articles I may as well show a way to do the same thing in Linux. Its a short, quick fix but it can be useful if you hate capslock like I do.

Below I outline the steps to disable the key:

I have not figured out a global way to disable the capslock key but it is fairly easy to do on a per user basis.

If we want to disable it just for the current session we can issue this command in a shell:

xmodmap -e "remove lock = Caps_Lock"

If you would like to do this on a more permanent basis for every session then you can add this short code to the end of you usrers .bashrc file.

This is generally located in /home/.bashrc:

#remove capslock
 if [ "$PS1" ]; then
     xmodmap -e "remove lock = Caps_Lock"
    ...
 fi

You can now either logout and log back in as your user or you can simply issue the command “bash” in a shell to update your environment variables.


List Price: $54.99 USD
New From: $24.25 In Stock
Used from: $22.00 In Stock

Linux System Administration (Paperback)

By (author) Tom Adelstein, Bill Lubanovic


List Price: $44.99 USD
New From: $22.90 In Stock
Used from: $15.08 In Stock
Release date March 1, 2007.

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail

Related posts:

  1. How to Disable the Caps Lock Key via the Registry in Windows I am always annoyed by the caps lock on a...
  2. Remap Windows 7 Keys, Disable A Key On The Keyboard I wanted to disable some keys and rearrange some other...
  3. GPU Linux Shell Temp: Get Nvidia GPU Temperatures Via Linux CLI So as every one knows we just rebuilt our massive...
  4. Wgetpaste – Upload Directly to Pastebin from the Linux Shell If you use pastebin as much as I do then...
  5. Possible Errors When Moving Nagios From One Linux Server To Another Linux Server I recently moved Nagios monitoring from one server to another...
Tags: , , , , , , ,
Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.

*