ថ្ងៃនេះពេលខ្ញុំកំពុងសរសេរអត្ថបទ ស្រាប់តែបានរកឃើញថា ពាក្យបញ្ជា tree មានបញ្ហាបង្ហាញអក្សរចិនមិនត្រឹមត្រូវ (乱码)៖
macbook:blog thiswind$ tree source
/source
/├── 404
.md├── CNAME
├── _posts
│ ├── Tree-?\221
?令中?\226\207乱?\201?\227??\230?\232\204解?\206?.md│ ├── hello-world.md
│ └── ?\207
??\224?软件.md├── about
│ └── index.md
├── categories
│ └── index.md
├── debug.log
├── favicon.ico
└── tags
└── index.md
4
directories, 10 files macbook:blog thiswind$
ដំណោះស្រាយគឺបន្ថែមប៉ារ៉ាម៉ែត្រ -N ទៅក្នុងពាក្យបញ្ជា tree ដូចខាងក្រោម៖
tree -N
macbook:blog thiswind$ tree -N source
/source
/├── 404
.md├── CNAME
├── _posts
│ ├── Tree-命令中文乱码问题的解决.md
│ ├── hello-world.md
│ └── 自由软件.md
├── about
│ └── index.md
├── categories
│ └── index.md
├── debug.log
├── favicon.ico
└── tags
└── index.md
4
directories, 10 files macbook:blog thiswind$