Redhat7:keyboard

From Define Wiki
Jump to navigation Jump to search

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=C

There 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

Keyboard 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