How do i control language and keyboard settings on redhat 7?
-
$ localectl System Locale: LANG=en_US.UTF-8 VC Keymap: us X11 Layout: us
To list available locales
$ localectl list-locales
To set a locale
$ localectl set-locale <locale>
This makes a system-wide change, To set the locale to American English do the following. The change does not take effect after next login, not a new terminal session. It is actually editing the /etc/locale.conf file.
$ sudo localectl set-locale LC_TIME="en_US.UTF-8"
To see differences in locale settings before you change settings, you can run something like this, for instance if changing the LC_TIME setting.
$ LC_TIME=en_US.UTF-8 date Mon Jan 28 07:51:58 GMT 2019
and American English.
$ LC_TIME=en_GB.UTF-8 date Mon 28 Jan 07:52:04 GMT 2019
© Lightnetics 2024