## 查看locale.conf文件内容 cat /etc/locale.conf
文件内容为,LANG="en_US.UTF-8"。bash
## 备份该文件,以防万一 cp /etc/locale.conf /etc/locale.conf_bak
从新编辑该文件:测试
## 使用vi编辑这个文件 vi /etc/locale.conf
内容以下:code
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"
从新或者使用exit命令,再次进入系统后输入:it
## 输入ll测试是否修改为中文 [root@localhost ~]# ll 总用量 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已经替换成中文"总用量"了,修改为功。class