Linux终端命令工具修改语言切换中文
1、输入locale查看当前使用语言
$ locale
LANG=zh_CN.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
2、修改环境变量设置语言为中文
$ sudo echo 'LANG=zh_CN.UTF-8' >> ~/.bashrc
$ sudo echo 'LANGUAGE=zh_CN.UTF-8' >> ~/.bashrc
$ source ~/.bashrc