mac系统下tree命令显示中文为乱码,一开始还以为是整个终端乱码,后来发现ls命令并不会中文乱码,在~/.zshrc
和~/.bash_profile
下添加下面两句也不管用
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
解决办法:
tree -N
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
标 题:Mac tree 命令,中文文件名乱码