Difference between revisions of "Redhat7:keyboard"
Jump to navigation
Jump to search
(Created page with "== 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 ...") |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 9: | Line 9: | ||
LC_MESSAGE=C | LC_MESSAGE=C | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | |||
| + | There are a number of options that can be set in the locale.conf file: | ||
| + | |||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | |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 === | === Display Current Status === | ||
| + | The 'localectl' command can be used to check the current status | ||
| + | |||
| + | <syntaxhighlight> | ||
| + | localectl status | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | === List all available locales === | ||
| + | |||
| + | <syntaxhighlight> | ||
| + | localectl list-locales | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | |||
| + | === Set the Locale === | ||
| + | |||
| + | <syntaxhighlight> | ||
| + | localectl set-locale LANG=locale | ||
| + | </syntaxhighlight> | ||
== 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