Use Xshell login Chinese version centos or Redhat, under Xshell if the output is Chinese words may be displayed garbled, through the following methods can effectively solve the garbled problem
Linux Chinese garbled solution method is as follows:
[Root@localhost ~]# cd/etc/sysconfig/
[Root@localhost sysconfig]# cp i18n I18n.bak #备份i18n文件
[Root@localhost sysconfig]# echo "" >i18n
[Root@localhost sysconfig]# VI i18n #加入以下内容
Lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"
However, after this modification, the Linux physical machine using terminal command line to display the Chinese characters is garbled, if not logged in locally, you can use this method
Linux Chinese garbled solution two:
By modifying the remote tool encoding to normal display Chinese, the remote tool in the encoding format to display the UTF8 format can solve the problem of Linux Chinese garbled! Some tools may not modify the function of the encoding, we recommend that you use Xhell, powerful!