美文网首页
命令行tree命令创建文件目录树

命令行tree命令创建文件目录树

作者: _____西班木有蛀牙 | 来源:发表于2018-06-05 16:38 被阅读5次

    语法

    tree [-aACdDfFgilnNpqstux][-I <范本样式>][-P <范本样式>][目录...]
    
    参数说明:
    • -a 显示所有文件和目录。
    • -A 使用ASNI绘图字符显示树状图而非以ASCII字符组合。
    • -C 在文件和目录清单加上色彩,便于区分各种类型。
    • -d 显示目录名称而非内容。
    • -D 列出文件或目录的更改时间。
    • -f 在每个文件或目录之前,显示完整的相对路径名称。
    • -F 在执行文件,目录,Socket,符号连接,管道名称名称,各自加上"*","/","=","@","|"号。
    • -g 列出文件或目录的所属群组名称,没有对应的名称时,则显示群组识别码。
    • -i 不以阶梯状列出文件或目录名称。
    • -I<范本样式> 不显示符合范本样式的文件或目录名称。
    • -l 如遇到性质为符号连接的目录,直接列出该连接所指向的原始目录。
    • -n 不在文件和目录清单加上色彩。
    • -N 直接列出文件和目录名称,包括控制字符。
    • -p 列出权限标示。
    • -P<范本样式> 只显示符合范本样式的文件或目录名称。
    • -q 用"?"号取代控制字符,列出文件和目录名称。
    • -s 列出文件或目录大小。
    • -t 用文件和目录的更改时间排序。
    • -u 列出文件或目录的拥有者名称,没有对应的名称时,则显示用户识别码。
    • -x 将范围局限在现行的文件系统中,若指定目录下的某些子目录,其存放于另一个文件系统上,则将该子目录予以排除在寻找范围外。
    tree > list.txt  // 输出到指定文件里面
    
    │  .babelrc
    │  .editorconfig
    │  .eslintignore
    │  .eslintrc.js
    │  .gitignore
    │  .postcssrc.js
    │  .project
    │  demo.txt
    │  index.html
    │  package.json
    │  README.md
    │  vue-elementUI-empty.zip
    │  yarn-error.log
    │  
    ├─build
    │      build.js
    │      check-versions.js
    │      logo.png
    │      utils.js
    │      vue-loader.conf.js
    │      webpack.base.conf.js
    │      webpack.dev.conf.js
    │      webpack.prod.conf.js
    │      webpack.test.conf.js
    │      
    ├─config
    │      dev.env.js
    │      index.js
    │      prod.env.js
    │      test.env.js
    │      
    ├─doc
    │      接口说明.txt
    │      
    ├─src
    │  │  App.vue
    │  │  main.js
    │  │  
    │  ├─assets
    │  │  │  logo.png
    │  │  │  
    │  │  ├─fonts
    │  │  │  └─iconfont
    │  │  │          demo.css
    │  │  │          demo_fontclass.html
    │  │  │          demo_symbol.html
    │  │  │          demo_unicode.html
    │  │  │          iconfont.css
    │  │  │          iconfont.eot
    │  │  │          iconfont.js
    │  │  │          iconfont.svg
    │  │  │          iconfont.ttf
    │  │  │          iconfont.woff
    │  │  │          
    │  │  ├─images
    │  │  │      logo.png
    │  │  │      
    │  │  ├─scripts
    │  │  └─stylesheets
    │  │          common.css
    │  │          
    │  ├─components
    │  │      app-container.vue
    │  │      aside-component.vue
    │  │      footer-component.vue
    │  │      header-component.vue
    │  │      main-component.vue
    │  │      
    │  ├─pages
    │  │  ├─dashboard
    │  │  │      dashboard.vue
    │  │  │      
    │  │  ├─journaling
    │  │  │      order.vue
    │  │  │      
    │  │  ├─login
    │  │  │      login.vue
    │  │  │      
    │  │  ├─map
    │  │  │      map.vue
    │  │  │      
    │  │  └─settings
    │  │          base.vue
    │  │          pay.vue
    │  │          table.vue
    │  │          
    │  ├─plugins
    │  │      axios.config.js
    │  │      element.ui.config.js
    │  │      
    │  ├─router
    │  │      index.js
    │  │      
    │  ├─store
    │  │  │  actions.js
    │  │  │  getters.js
    │  │  │  index.js
    │  │  │  mutation-types.js
    │  │  │  mutations.js
    │  │  │  
    │  │  └─modules
    │  │          notify.js
    │  │          progress.js
    │  │          router.js
    │  │          
    │  └─utils
    │          cookie.js
    │          
    ├─static
    │      .gitkeep
    │      
    └─test
        ├─e2e
        │  │  nightwatch.conf.js
        │  │  runner.js
        │  │  
        │  ├─custom-assertions
        │  │      elementCount.js
        │  │      
        │  └─specs
        │          test.js
        │          
        └─unit
            │  .eslintrc
            │  index.js
            │  karma.conf.js
            │  
            └─specs
                    HelloWorld.spec.js
    

    相关文章

      网友评论

          本文标题:命令行tree命令创建文件目录树

          本文链接:https://www.haomeiwen.com/subject/nncmsftx.html