2019-03-11 14:59:26 +00:00
|
|
|
# tree
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 以目录树的形式显示指定目录的所有文件夹和文件。
|
2022-10-04 16:06:23 +01:00
|
|
|
> 更多信息:<https://learn.microsoft.com/windows-server/administration/windows-commands/tree>.
|
2019-03-11 14:59:26 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示当前目录的目录树:
|
2019-03-11 14:59:26 +00:00
|
|
|
|
|
|
|
`tree`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示指定目录的目录树:
|
2019-03-11 14:59:26 +00:00
|
|
|
|
|
|
|
`tree {{目录的路径}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示目录中文件的目录树:
|
2019-03-11 14:59:26 +00:00
|
|
|
|
|
|
|
`tree {{目录的路径}} /f`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 使用 ASCII 字符而不是扩展字符显示目录树:
|
2019-03-11 14:59:26 +00:00
|
|
|
|
|
|
|
`tree {{目录的路径}} /a`
|