Resetting the Linux keyboard layout

From Stack Overflow
Jump to: navigation, search

At one point in Ubuntu/Kubuntu, the keyboard layout got reset to an international format (i.e. shift-2 was the quote, shift-semicolon was the at-symbol, and shift-back-apostrophe was some weird thing that wasn't a tilde), and it turns out the following command resets the keyboard:

setxkbmap -model pc104 -layout us
Personal tools