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-2025

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

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


posted @   xgqfrms  阅读(158)  评论(3编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2016-09-26 How to using javascript to realize an Factorial Calculator 阶乘计算器(javascript 实现)
2015-09-26 微软 2014年校园招聘笔试试题
2015-09-26 微软经常问及的问题
2015-09-26 微软 2014 校园招聘试题大全
点击右上角即可分享
微信分享提示