Difference between revisions of "Redhat7:keyboard"
Jump to navigation
Jump to search
| Line 58: | Line 58: | ||
== Keyboard Settings == | == Keyboard Settings == | ||
| + | |||
| + | The keymap is part of the system locale. As before the keymap can be checked or set using the localectl command | ||
| + | |||
| + | <syntaxhighlight> | ||
| + | localectl status | ||
| + | localectl list-keymaps | ||
| + | localectl set-keymap map | ||
| + | </syntaxhighlight> | ||
Latest revision as of 09:44, 5 January 2015
System Locale
The system Locale is configured in /etc/locale.conf, and is read at boot. Users can override these settings if they wish
The default format of the file is shown below:
LANG=de_DE.UTF-8
LC_MESSAGE=CThere are a number of options that can be set in the locale.conf file:
| LANG | default value for the locale |
| LC_COLLATE | Changes the behaviour of functions that compare strings |
| LC_CTYPE | Changes the behaviour of functions that handle characters |
| LC_NUMERIC | Defines how numbers are usually printed |
| LC_TIME | Changes how the time is displayed |
| LC_MESSAGES | Changes how messages are displayed |
Display Current Status
The 'localectl' command can be used to check the current status
localectl status
List all available locales
localectl list-locales
Set the Locale
localectl set-locale LANG=localeKeyboard Settings
The keymap is part of the system locale. As before the keymap can be checked or set using the localectl command
localectl status
localectl list-keymaps
localectl set-keymap map