cmd或power shell平台
安装:
cnpm i tree-node-cli -g
使用:
cmd>tree /?
Graphically displays the folder structure of a drive or path.
TREE [drive:][path] [/F] [/A]
/F Display the names of the files in each folder.
/A Use ASCII instead of extended characters.
cmd>tree --help
以图形方式显示驱动器或路径的文件夹结构
tree [drive][path] [/F] [/A]
/f 显示所有目录及目录下的所有文件,省略时,只显示此路径下的所有目录类型directory,不显示文件类型file
/a 使用ASCII字符,而不使用扩展字符
例:
tree programeDir /f >readme.txt
tree /f >readme.txt
tree >readme.txt
linux平台
git bash
可参考linux,或下面链接
Window平台下tree 命令使用