CentOS7 使用tree命令不顯示中文

一、你若是使用tree命令看見的狀況是這樣spa

  

[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

 

 

 

二、使用  tree  -N 顯示 ,可能會獲得你想要的結果code

[lk@localhost ~]$ tree  -N
.
├── perl5
├── Python-3.7.0.tgz
├── 公共
├── 模板
├── 視頻
├── 圖片
├── 文檔
├── 下載
├── 音樂
└── 桌面

9 directories, 1 file
相關文章
相關標籤/搜索