CentOS7 region settings
CentOS7 region settings
The region configuration file is in/Etc/locale. conf,Set Through localectl command;
The systemd service reads the region configuration file at startup to complete system settings.
Several common methods of the command are as follows:
1. view the current configuration
[Root @ localhost ~] # Localectl status
System Locale: LANG = en_US.UTF-8
VC Keymap: us
X11 Layout: us
2. view available regional languages
[Root @ localhost ~] # Localectl list-locales | grep CN
Bo_CN
Bo_CN.utf8
Ug_CN
Ug_CN.utf8
Zh_CN
Zh_CN.gb18030
Zh_CN.gb2312
Zh_CN.gbk
Zh_CN.utf8
3. Set regional speech
Localectl set-locale LANG = zh_CN.utf8
4. Run the following commands to view and configure the keyboard layout.
Localectl list-keymaps
Localectl set-keymap
Localectl set-x11-keymap.
5 localectl can also configure the remote system region, and the-H parameter can be added.
-H -- host = [USER @] HOST Operate on remote host
6. Several keywords of the localectl command:
Keywords
LANG default system voice
LC_COLLATE change the alphabet
LC_CTYPE character change function processing
LC_NUMERIC numeric format
LC_TIME format, 24-hour format, or 12-hour format.
LC_MESSAGES indicates the language in which standard error messages are reported.