inside the mind of a linux admin

My Lenovo laptop thinks the pipe key is a > character

So, those that know me know I have a few laptops. I’m no stranger to technology.

Imagine my chagrin when I try piping a linux command to grep and my output comes out like so:

ps uawx > grep X

I know that the ps command thinks it is superior to grep, but seriously. WTF


Huzzah! You can use xmodmap to tell Linux what that key should actually do.

xmodmap -e “keycode 94 = backslash bar”

Now suppose you don’t want to actually have to hack that every time you use your system? Well, here’s a quick fix until the real fix hits the repos…


echo 'xmodmap -e "keycode 94 = backslashbar"' > kbfix.sh
chmod +x kbfix.sh

Note: ALL punctuation is necessary above (quotes and double quotes).

If using one of the common distros, open System -> Preferences -> Startup Applications and in the Startup Programs Tab, click Add.

Then put the path to your newly made executable script, give it a description and reboot. Your keyboard should be sane again.

Related Posts

synergy: How to enable crypto (encryption) and generate SSL certificate

The newer Linux versions of the popular mouse/keyboard sharing application “synergy” now has built in encryption. Here’s how to configure it: Just simply passing the –enable-crypto flag on your synergy server without having a proper SSL certificate will result in the inability to connect to clients and generate an error message similar to this in […]

Read More

Change Number Pad Delete (dot) key from a comma in Ubuntu Linux

I recently purchased a new keyboard and updated to the latest Ubuntu, I’m also an avid user of the number pad for quick input when dealing with spreadsheets or accounting. I found that my num pad’s delete key (“.”) was outputting a comma (“,”) instead. Pretty annoying? I agree, but this can be very easily […]

Read More

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.