Main Content

Change the Keyboard Layout for CentOS / Scientific Linux

Yes, for some reason one of my VMs was configured with a different keyboard layout:

[root@system7]# cat /etc/sysconfig/keyboard

KEYTABLE="it"
MODEL="pc105"
LAYOUT="it"
KEYBOARDTYPE="pc"

The solution is quite simple all you have to do is edit /etc/sysconfig/keyboard with your favorite editor to make the keyboard layout US friendly. I am using VI as an example you can use whatever text editor you prefer.

[root@system7]# vi /etc/sysconfig/keyboard

KEYTABLE="us"
MODEL="pc105+inet"
LAYOUT="us"
KEYBOARDTYPE="pc"

Save and Exit the text editor. Restart the system so the changes can take effect, now you should have a keyboard layout that you are familiar with.

Comments

  1. Commented on
    Comment by iiiiiiiiiii

    use system-config-keyboard and you don’t have to restart!

Comments are closed.