Leif160519的blog Leif160519的blog

——————

目录
Mac tree 命令,中文文件名乱码
/    

Mac tree 命令,中文文件名乱码


mac系统下tree命令显示中文为乱码,一开始还以为是整个终端乱码,后来发现ls命令并不会中文乱码,在~/.zshrc~/.bash_profile下添加下面两句也不管用

export LC_ALL=en_US.UTF-8  
export LANG=en_US.UTF-8

image.png

解决办法:

tree -N

image.png


“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 命令,中文文件名乱码
作  者Leif160519
出  处https://github.icu/articles/2019/09/25/1569373499976.html
关于博主:坐标南京,运维工程师,如有问题探讨可以直接下方留言。
声援博主:如果您觉得文章对您有帮助,可以评论、订阅、收藏。您的鼓励是博主的最大动力!