新买的mac,打开terminal,定位到某目录,ls时是乱码。
这时候,
cd ~
touch .bash_profile
vi .bash_profile
然后在新文件中加入:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
保存退出,然后再
source ~/.bash_profile
新买的mac,打开terminal,定位到某目录,ls时是乱码。
这时候,
cd ~
touch .bash_profile
vi .bash_profile
然后在新文件中加入:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
保存退出,然后再
source ~/.bash_profile