English Persian
~]${nbsp}localectl list-locales | grep pass:quotes[`en_`]
pass:quotes[*output truncated*]
Setting the Locale
To set the default system locale, use the following command as `root`:
[command]#localectl# [option]`set-locale` [option]`LANG`pass:attributes[{blank}]=pass:attributes[{blank}]_locale_
Replace _locale_ with the locale name, found with the [command]#localectl# [option]`list-locales` command. The above syntax can also be used to configure parameters from xref:System_Locale_and_Keyboard_Configuration.adoc#tab-locale_options[Options configurable in /etc/locale.conf].
Changing the Default Locale
For example, if you want to set British English as your default locale, first find the name of this locale by using [option]`list-locales`. Then, as `root`, type the command in the following form:
~]#{nbsp}localectl set-locale LANG=pass:quotes[`en_GB.utf8`]
Changing the Keyboard Layout
indexterm:[localectl,keyboard configuration]indexterm:[keyboard configuration,layout] The keyboard layout settings enable the user to control the layout used on the text console and graphical user interfaces.
Displaying the Current Settings
As mentioned before, you can check your current keyboard layout configuration with the following command:
Displaying the Keyboard Settings
In the following output, you can see the keyboard layout configured for the virtual console and for the X11 window system.
~]${nbsp}localectl status
System Locale: LANG=en_US.utf8
VC Keymap: us
X11 Layout: us
Listing Available Keymaps
To list all available keyboard layouts that can be configured on your system, type:
[command]#localectl# [option]`list-keymaps`
Searching for a Particular Keymap