Windows:
tree指令在win系统下是自带的,但是功能有限。
只有两个功能,参考[1]
/f | Displays the names of the files in each directory. |
/a | Specifies to use text characters instead of graphic characters to show the lines that link subdirectories. |
Linux:
在linux下, tree的参数比较丰富,具体可以参考[2]
这边常用的指令如下:
按照文件的大小降序排序,列出所有文件
tree --sort=size -s > ../patch_list.txt
列出所有文件
tree > ../patch_list_HL.txt
只列出所有的文件夹
tree -d > ../patch_list_folder.txt