How to change linux English into Chinese
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!