CentOS7 system language switch

In the CentOS system, although the Chinese language interface is easy to understand intuitively, it is often necessary to use operating commands. In the case of a Chinese directory, there are mixed Chinese and English names, which is not convenient for inputting characters and positioning paths, so it is unified to modify English language display.

#查看当前系统的语言
locale

#修改locale.conf文件内容
cd /etc
vi locale.conf

#将系统语言设置成中文
LANG="zh_CN.UTF-8"

#将系统语言设置成英文
LANG="en_US.UTF-8"

#重启CentOS系统后即可生效
reboot

Guess you like

Origin blog.csdn.net/houwanle/article/details/112613080