Redhat7:keyboard
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=locale