Windows中的Tree命令

Windows中的Tree命令你会用吗? - 步行者的专栏 - CSDN博客 https://blog.csdn.net/hantiannan/article/details/7663893

(venv1) D:pyCGlangcd1>tree
文件夹 PATH 列表
卷序列号为 0000-D760
D:.
├─.idea
├─commons
│  └─__pycache__
├─sdk0
│  └─__pycache__
└─visit

(venv1) D:pyCGlangcd1>tree /F
文件夹 PATH 列表
卷序列号为 0000-D760
D:.
│  t__import__.py
│  ycan.py
│
├─.idea
│      cd1.iml
│      misc.xml
│      modules.xml
│      workspace.xml
│
├─commons
│  │  __init__.py
│  │
│  └─__pycache__
│          __init__.cpython-37.pyc
│
├─sdk0
│  │  a.py
│  │  __init__.py
│  │
│  └─__pycache__
│          a.cpython-37.pyc
│          __init__.cpython-37.pyc
│
└─visit
        __init__.py


(venv1) D:pyCGlangcd1>tree /A
文件夹 PATH 列表
卷序列号为 0000-D760
D:.
+---.idea
+---commons
|   ---__pycache__
+---sdk0
|   ---__pycache__
---visit

(venv1) D:pyCGlangcd1>tree
文件夹 PATH 列表
卷序列号为 0000-D760
D:.
├─.idea
├─commons
│  └─__pycache__
├─sdk0
│  └─__pycache__
└─visit

(venv1) D:pyCGlangcd1>

  

其实tree命令 是一个很不错的功能。可以把指定文件夹的所以文件用树状罗列出来。然后我们查看树状结构就能够了解有那些文件,然后我们在去查看需要关心的有那些文件就可以了。

用法:TREE [d:][path] [/A][/F]

/A - Specifies that alternative characters (plus signs, hyphens, and vertical bars) be used to draw the tree diagram so that it can be printed by printers that don`t support the line-drawing and box-drawing characters (DOS Versions 4 and 5).

/F - Displays the names of the files found within each directory listed.

原文地址:https://www.cnblogs.com/rsapaper/p/8780189.html