How to disable Caps Lock key in Linux?

Linux provided a command called “xmodmap” to enable and disable the Caps Lock key functionality. Frankly, i do not understand what’s benefit of disable the Caps Lock key, may be avoid accidentally press on it?

Disable Caps Lock key

xmodmap -e "remove lock = Caps_Lock"

Eisable Caps Lock key

xmodmap -e "add lock = Caps_Lock"

After you issue the command to disable the Caps_Lock key, the Caps_Lock light will not blink any more, no matter how many times you pressed on the Caps_Lock key :), funny trick.

About the Author

author image
Founder of, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.


0 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
0 Comment authors
Recent comment authors
newest oldest most voted