1、windows下显示目录结构

tree /F
D:\Program Files\Hexo\source>tree /F
文件夹 PATH 列表
卷序列号为 00000200 E077:4672
D:.
│ CNAME
├─about
│ index.md
└─_posts
config-hexo-in-windows.md
learn-from-others.md
show-dir.md
think-more-ways-less-questions.md

2、Linux下显示目录结构的方法

find . | sed -e 's;[^/]*/;|___;g;s;___|; |;g'
admin@admin-PC MINGW32 /d/Program Files/Hexo/source
$ find . | sed -e 's;[^/]*/;|___;g;s;___|; |;g'
.
|___about
| |___index.md
|___CNAME
|____posts
| |___config-hexo-in-windows.md
| |___learn-from-others.md
| |___show-dir.md
| |___think-more-ways-less-questions.md

文章目录