The results show the input commands Linux-- distortion (using LANG = en_US.utf8)

Note: The following garbage problem just change the command window, instead of changing the whole system language (forthcoming Chinese to English, etc.). 

Linux can support multiple language, if possible, a message screen that will support the languages to output. However, our terminal interfaces (terminal) in the case of default, unable to support Chinese encoding output data. This time, we will have to support the language to English, to be able to show the right message in English. 

1, see the current supported languages and encoding (by using the    locale command )

#显示目前所支持的语言与编码
[hern@hern ~]$ locale
LANG=zh_CN.UTF-8                # 系统语言与编码
LC_CTYPE="zh_CN.UTF-8"          # 底下为许多信息的输出使用的特别语言与编码
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"           # 时间语言与编码
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=                         # 全部的数据同步更新的设定值

2, to modify the system for the English language and the language code (using the LANG command )

LANG=en_US.utf8

 Note: [] LANG = en_US.utf8 is continuously input, and equal on both sides without any spaces Oh! It can only be effective and view messages in English at this time of login, if you log out Linux, has just issued the instruction did not use it!

Published 705 original articles · won praise 666 · Views 1.43 million +

Guess you like

Origin blog.csdn.net/qq_36761831/article/details/104774719