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

Linux shell command show project directory tree All In One

Linux shell command show project directory tree All In One

image

tree

# Linux / Debian / Ubuntu / Raspberry Pi OS
$ sudo apt install tree
$ sudo apt-get install tree

# macOS
$ brew install tree
$ man tree
$ man tree > tree.md

Linux directory tree

https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

https://en.wikipedia.org/wiki/Unix_filesystem#Conventional_directory_layout

https://www.w3resource.com/linux-system-administration/linux-file-tree.php

https://en.wikipedia.org/wiki/Tree_(command)

svg

https://en.wikipedia.org/wiki/File:Unix_history-simple.svg

https://upload.wikimedia.org/wikipedia/commons/7/77/Unix_history-simple.svg

demos


# D:\svn\light-ios-app\h5_app>bash
xgqfrms@NB:/mnt/d/svn/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/svn/light-ios-app/h5_app$

Next.js bug

$ nextjs-ssr tree -L 2 -I "node_modules|000-xyz"
.
├── README.md
├── README.old.md
├── Test.md
├── components
│   ├── cdn-script.js
│   ├── footer.js
│   ├── layout.js
│   └── navbar.js
├── next.config.js
├── package-lock.json
├── package.json
├── pages
│   ├── _app.js
│   ├── _document.js
│   ├── api
│   ├── cnblogs
│   ├── index-old.js
│   ├── index.js
│   └── react_v18
├── posts
│   ├── 2021
│   ├── 2022
│   └── markdown.md
├── public
│   ├── favicon.ico
│   └── vercel.svg
├── styles
│   ├── Home.module.css
│   └── globals.css
└── utils
    ├── click-copy.js
    ├── parser.js
    ├── posts bug.js
    ├── posts.js
    ├── xyz-promise.ts
    └── xyz.js

11 directories, 25 files
➜  nextjs-ssr 


https://github.com/vercel/next.js/issues/43528

tree level

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

refs

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



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2018-09-26 11:02  xgqfrms  阅读(155)  评论(3编辑  收藏  举报