Home >Operation and Maintenance >CentOS >What to do if the CentOS console is garbled

What to do if the CentOS console is garbled

angryTom
angryTomOriginal
2020-03-18 12:08:112877browse

What to do if the CentOS console is garbled

What to do if the CentOS console is garbled

1. Check the contents of the locale.conf file cat /etc/locale.conf

LANG="en_US.UTF-8"

2. Re-edit the file: (Recommended learning: laravel tutorial)

vi /etc/locale.conf

The content is as follows:

LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"

3. Re-edit or use the exit command, After entering the system again, enter:

[root@localhost ~]# ls -l
总用量 8
-rw-------. 1 root root 1267 12月 28 05:47 anaconda-ks.cfg
drwxr-xr-x. 3 root root 4096 1月   9 10:22 setup
[root@localhost ~]#

total has been replaced with the Chinese "total usage". The modification is successful and no longer garbled.

This article comes from the PHP Chinese website, CentOS usage tutorial column, please pay attention to this column for more related tutorials!

The above is the detailed content of What to do if the CentOS console is garbled. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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