tree 命令以树状格式列出目录的内容, 查看文件系统的结构。
C:\Users\Administrator\Desktop>tree /?
以图形显示驱动器或路径的文件夹结构。
TREE [drive:][path] [/F] [/A]
/F 显示每个文件夹中文件的名称。
/A 使用 ASCII 字符,而不使用扩展字符。(1)查看当前目录结构,不包含文件,以树形进行展示
C:\Users\Administrator\Desktop\nginx-1.18.0> tree
文件夹 PATH 列表
卷序列号为 9C05-A728
C:.
├─conf
├─html
└─logs(2)查看当前目录下目录和文件,以树形进行展示
C:\Users\Administrator\Desktop\nginx-1.18.0>tree /F
文件夹 PATH 列表
卷序列号为 9C05-A728
C:.
│ nginx.exe
│
├─conf
│ fastcgi.conf
│ fastcgi_params
│ koi-utf
│ koi-win
│ mime.types
│ nginx.conf
│ scgi_params
│ uwsgi_params
│ win-utf
│
├─html
│ 50x.html
│ index.html
│
└─logs
access.log
error.log
nginx.pid