有个命令 dirtree 用来以树形格式显示目录结构。
这个命令在很多机器上并不容易找到。其实可以用别的命令来替代。比如
find . -type d | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"
26/32ms