The following linux command will list all available locales currently available on the Redhat 7 system:
[root@rhel7 ~]# localectl list-locales
The list of all available locales on your system my be quite long so use grep
command to narrow down your search. Bellow command will display for example all German available locales:
[root@rhel7 ~]# localectl list-locales | grep ^de de_AT de_AT.iso88591 de_AT.iso885915@euro de_AT.utf8 de_AT@euro de_BE de_BE.iso88591 de_BE.iso885915@euro de_BE.utf8 de_BE@euro de_CH de_CH.iso88591 de_CH.utf8 de_DE de_DE.iso88591 de_DE.iso885915@euro de_DE.utf8 de_DE@euro de_LU de_LU.iso88591 de_LU.iso885915@euro de_LU.utf8 de_LU@euro deutsch
If you need to display a currently set locale on your system run localectl
command without any options or arguments. This will show currently active locale as well as key mapping and keyboard layout:
[root@rhel7 ~]# localectl System Locale: LANG=en_AU.UTF-8 VC Keymap: us X11 Layout: us
The above is a abbreviated alternative to:
[root@rhel7 ~]# localectl status