xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Linux & tree

https://www.computerhope.com/unix/tree.htm

https://www.computerhope.com/unix/tree.htm#examples

https://linux.die.net/man/1/tree

https://www.cyberciti.biz/faq/linux-show-directory-structure-command-line/

https://www.ostechnix.com/view-directory-tree-structure-linux/

http://mama.indstate.edu/users/ice/tree/

# all
$ tree

# folder only
$ tree -d

# src folder
$ tree src

# ignore folder
$ tree -I "node_modules*"


D:00-testinglight-ios-apph5_app>bash
xgqfrms@NB:/mnt/d/000-testing/light-ios-app/h5_app$ tree

# 
├── app.js
├── app.less
├── css
│   ├── reset.css
│   └── style.less
├── images
│   ├── about-active.png
│   ├── about.png
│   ├── contact-active.png
│   ├── contact.png
│   ├── home-active.png
│   ├── home.png
│   ├── more.png
│   └── scan.png
├── index.html
├── lib
│   ├── package.json
│   └── px2rem.js
├── project.json
├── ui
│   └── ui.vue
└── view
    ├── index
    │   ├── about.vue
    │   ├── contact.vue
    │   └── home.vue
    └── index.vue

# 6 directories, 21 files
xgqfrms@NB:/mnt/d/000-testing/light-ios-app/h5_app$


tree level

$ tree -L 3 -I "node_modules|bower_components"

https://www.cnblogs.com/xgqfrms/p/10729411.html


原文地址:https://www.cnblogs.com/xgqfrms/p/9491946.html