CentOS7 region settings

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.