How to set the Linux system Chinese language, this is a lot of small partners in the beginning of the use of Linux, will encounter a problem, is the terminal input command echo when the Chinese display garbled. This situation typically occurs because the Chinese Language pack is not installed, or the default language that is set is causing the problem. Nithya this experience with CentOS as an example, how to operate Linux how to view the language, set the language of modification
Linux How to view settings System Language Pack
View current system language
After logging on to the Linux system, enter the echo $LANG to view the system language currently in use. Such as
To view installed language packs
See if there is a Chinese language pack to enter locale commands at the terminal, if En cn indicates that the Chinese language is already installed
What if there is no Chinese language?
You can download and install the Chinese Language pack Yum groupinstall chinese-support(not networked through other computers to download, upload it)
How to modify the system language to Chinese
1 Temporary language change
If you are only temporarily changing the language environment of the Linux system, you can set the lang= language name by typing, such as Chinese
Zn_cn. UTF-8 (Note that I am here originally in Chinese, I temporarily set to English
Modifying the system default language
The above method is to set the system default language configuration by modifying the
such as vi/etc/sysconfig/i18n (pay attention to change the system after the restart)
Other precautions
If you follow the above methods to set the Chinese language or not, pay attention to the encoding of your link terminal selection.
As an example of Xshell, the encoding of the terminal is selected in Chinese, or UTF8 can be
After setting up, look at the previous garbled file again to see the display as Chinese
Linux Chinese display garbled? How to set up CentOS display in Chinese