Home > Article > Operation and Maintenance > How to solve the garbled problem of linux ls
Linux ls garbled solution: 1. Open the command window; 2. Modify the system environment variable "/etc/sysconfig/i18n LANG="zh_CN.GB18030" LANGUAGE="zh_CN.GB18030:zh_CN.GB2312. ..".
The operating environment of this article: linux5.9.8 system, Dell G3 computer.
How to solve the garbled problem of linux ls ?
Use ls to view garbled files under Linux system:
I have this problem when I use ssh and putty to view..As follows
Solution:
Modify the system environment variable i18n
[root@linux ~]# vi /etc/sysconfig/i18n LANG="zh_CN.GB18030" LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN" SUPPORTED="zh_CN.UTF-8:zh_CN:zh:zh_TW.UTF-8:zh_TW:zh:en_US.UTF-8:en_US:en" SYSFONT="lat0-sun16"
Recommended study: "linux video tutorial"
The above is the detailed content of How to solve the garbled problem of linux ls. For more information, please follow other related articles on the PHP Chinese website!