How to solve the garbled problem of linux ls

藏色散人
Release: 2021-12-14 11:08:20
Original
5806 people have browsed it

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. ..".

How to solve the garbled problem of linux ls

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

How to solve the garbled problem of linux ls

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"
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template