Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to change linux English into Chinese

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "how to change linux English into Chinese". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn the article "how to change linux English into Chinese".

Linux English into Chinese methods: 1, download the Chinese language pack; 2, the use of "vim / etc/sysconfig/i18n" command, the file "LANG=en_US.UTF-8" to "LANG=zh_CN.UTF-8"; 3, the use of reboot command can be restarted.

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

How to change linux English into Chinese

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

Locale-a

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

two。 Install Chinese language Pack

Ubuntu:

Sudo apt-get install language-pack-zh-hans

CentOS:

Yum groupinstall chinese-support

Then use locale-a to see if the download is complete.

3. Modify the configuration file

(1) Ubuntu:

Sudo vim / etc/default/locale

Modify it to the following:

LANG= "zh_CN.utf8" LANGUAGE= "zh_CN:zh" LC_ALL= "zh_CN.utf8"

(2) CentOS:

CentOS6.5:

Vim / etc/sysconfig/i18n

CentOS7:

Vim / etc/locale.conf

Put the inside:

LANG=en_US.UTF-8

Change it to:

LANG=zh_CN.UTF-8

4. Restart

Reboot

Among them, the above CentOS commands are carried out under the permission of root.

The above is all the contents of the article "how to change linux English into Chinese". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report