Home > Operation and Maintenance > Linux Operation and Maintenance > How to change linux English to Chinese

How to change linux English to Chinese

WBOY
Release: 2022-03-11 11:57:28
Original
9368 people have browsed it

How to change Linux English to Chinese: 1. Download the Chinese language pack; 2. Use the "vim /etc/sysconfig/i18n" command to change "LANG=en_US.UTF-8" in the file to "LANG=zh_CN.UTF-8"; 3. Use the reboot command to restart.

How to change linux English to Chinese

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to change English to Chinese in Linux

1. First check whether the current system has a Chinese language pack

locale -a
Copy after login

If there is no zh_CN.utf8, you need Download the Chinese language pack, otherwise, if there is a Chinese language pack, skip the second step.

2. Install the Chinese language pack

Ubuntu:

sudo apt-get install language-pack-zh-hans
Copy after login

CentOS:

yum groupinstall chinese-support
Copy after login

Then check whether it is through locale -a Download completed.

3. Modify the configuration file

(1)Ubuntu:

sudo vim /etc/default/locale
Copy after login

Modify it to the following content:

LANG="zh_CN.utf8"
LANGUAGE="zh_CN:zh"
LC_ALL="zh_CN.utf8"
Copy after login

( 2)CentOS:

CentOS6.5:

vim /etc/sysconfig/i18n
Copy after login

CentOS7:

vim /etc/locale.conf
Copy after login

Change the inside:

LANG=en_US.UTF-8
Copy after login

to:

LANG=zh_CN.UTF-8
Copy after login

4. Restart

reboot
Copy after login

Among them, the above CentOS commands are all performed under root privileges.

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of How to change linux English to Chinese. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template