• 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.

  • 相关阅读:
    洛谷 P1037 产生数
    阿里实习储备知识
    腾讯后台开发面试总结(别人的)
    两个栈实现队列的功能
    栈里的元素升序排列
    二叉树路径和
    硬币组合问题
    九月十月百度,迅雷,华为,阿里巴巴笔试面试六十题(第411~470题)
    轻松搞定面试中的二叉树题目
    july教你如何迅速秒杀掉:99%的海量数据处理面试题
  • 原文地址:https://www.cnblogs.com/rsapaper/p/8780189.html
Copyright © 2020-2023  润新知