CentOS7 使用tree命令不显示中文

1、你如果使用tree命令看见的情况是这样

  

[lk@localhost ~]$ tree
.
├── perl5
├── Python-3.7.0.tgz
├── \345\205\254\345\205\261
├── \346\250\241\346\235\277
├── \350\247\206\351\242\221
├── \345\233\276\347\211\207
├── \346\226\207\346\241\243
├── \344\270\213\350\275\275
├── \351\237\263\344\271\220
└── \346\241\214\351\235\242

9 directories, 1 file

2、使用  tree  -N 显示 ,可能会得到你想要的结果

[lk@localhost ~]$ tree  -N
.
├── perl5
├── Python-3.7.0.tgz
├── 公共
├── 模板
├── 视频
├── 图片
├── 文档
├── 下载
├── 音乐
└── 桌面

9 directories, 1 file

猜你喜欢

转载自www.cnblogs.com/karrya/p/10851108.html