linux 修改用户字符集

在环境变量文件.bash_profile添加如下代码:

export LC_ALL="zh_CN.GBK"
export LANG="zh_CN.GBK"

保存文件后,使用命令:source .bash_profile或者. .bash_profile生效环境变量

posted @ 2018-01-10 21:59  linux.vincent  阅读(437)  评论(0编辑  收藏  举报