zoukankan      html  css  js  c++  java
  • Window下cmd查看目录结构

    在Linux下通过安装tree可以查看文件的目录结构:

     tree -L 2 

    比如上面这个命令就是查看当前目录下的所有目录及文件,深度为2级。

    在windows下也有同样的命令,如下使用 tree /f 查看当前目录下的所有文件:

     1 C:UsersAdministratorDesktop	est>tree /f
     2 卷 系统文件 的文件夹 PATH 列表
     3 卷序列号为 00000094 1032:B8F3
     4 C:.
     5 │  CMakeLists.txt
     6 │  main.c
     7  8 └─build
     9     │  CMakeCache.txt
    10     │  cmake_install.cmake
    11     │  hello.exe
    12     │  hello.ilk
    13     │  hello.pdb
    14     │  Makefile
    15 16     └─CMakeFiles
    17         │  cmake.check_cache
    18         │  CMakeDirectoryInformation.cmake
    19         │  CMakeOutput.log
    20         │  feature_tests.bin
    21         │  feature_tests.cxx
    22         │  Makefile.cmake
    23         │  Makefile2
    24         │  progress.marks
    25         │  TargetDirectories.txt
    26 27         ├─3.15.2
    28         │  │  CMakeCCompiler.cmake
    29         │  │  CMakeCXXCompiler.cmake
    30         │  │  CMakeDetermineCompilerABI_C.bin
    31         │  │  CMakeDetermineCompilerABI_CXX.bin
    32         │  │  CMakeRCCompiler.cmake
    33         │  │  CMakeSystem.cmake
    34         │  │
    35         │  ├─CompilerIdC
    36         │  │  │  CMakeCCompilerId.c
    37         │  │  │  CMakeCCompilerId.exe
    38         │  │  │  CMakeCCompilerId.obj
    39         │  │  │
    40         │  │  └─tmp
    41         │  └─CompilerIdCXX
    42         │      │  CMakeCXXCompilerId.cpp
    43         │      │  CMakeCXXCompilerId.exe
    44         │      │  CMakeCXXCompilerId.obj
    45         │      │
    46         │      └─tmp
    47         ├─CMakeTmp
    48         └─hello.dir
    49                 build.make
    50                 C.includecache
    51                 cmake_clean.cmake
    52                 depend.internal
    53                 depend.make
    54                 DependInfo.cmake
    55                 embed.manifest
    56                 flags.make
    57                 intermediate.manifest
    58                 main.c.obj
    59                 manifest.rc
    60                 manifest.res
    61                 objects1.rsp
    62                 progress.make
    63                 vc140.pdb

    生成文件夹目录到文件命令:

     tree >filedir.txt 

    生成文件目录到文件命令:

     tree /f >file.txt 

  • 相关阅读:
    CSS属性选择器
    JS中For循环中嵌套setTimeout()方法的执行顺序
    document.getElementsByTagName()方法的返回值
    常见浏览器及其内核
    git与svn的区别
    JS解析URL参数为对象
    CSS中的伪类和为伪元素
    CSS中:first-child伪类
    CSS链接使用伪类的顺序
    CSS行内框(内联元素)
  • 原文地址:https://www.cnblogs.com/juluwangshier/p/11789395.html
Copyright © 2011-2022 走看看