macOS查看当前项目的 tree 结构

文章目录

  • [使用 `tree` 命令](#使用 tree 命令)

macOS 系统默认不包含 tree 命令

使用 tree 命令

  1. 使用homebrew自动安装脚本

    bash 复制代码
    /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
  2. 安装 tree

    bash 复制代码
    brew install tree
  3. 查看项目的 tree 结构:

    bash 复制代码
    tree
bash 复制代码
yang@MacdeMac-mini gradleStudy % tree
.
├── README.md
├── app
│   ├── build
│   │   ├── classes
│   │   │   └── java
│   │   │       ├── main
│   │   │       │   └── com
│   │   │       │       └── yang
│   │   │       │           └── App.class
│   │   │       └── test
│   │   │           └── com
│   │   │               └── yang
│   │   │                   └── AppTest.class
│   │   ├── generated
│   │   │   └── sources
│   │   │       ├── annotationProcessor
│   │   │       │   └── java
│   │   │       │       ├── main
│   │   │       │       └── test
│   │   │       └── headers
│   │   │           └── java
│   │   │               ├── main
│   │   │               └── test
│   │   ├── reports
│   │   │   └── tests
│   │   │       └── test
│   │   │           ├── classes
│   │   │           │   └── com.yang.AppTest.html
│   │   │           ├── css
│   │   │           │   ├── base-style.css
│   │   │           │   └── style.css
│   │   │           ├── index.html
│   │   │           ├── js
│   │   │           │   └── report.js
│   │   │           └── packages
│   │   │               └── com.yang.html
│   │   ├── test-results
│   │   │   └── test
│   │   │       ├── TEST-com.yang.AppTest.xml
│   │   │       └── binary
│   │   │           ├── output.bin
│   │   │           ├── output.bin.idx
│   │   │           └── results.bin
│   │   └── tmp
│   │       ├── compileJava
│   │       │   └── previous-compilation-data.bin
│   │       ├── compileTestJava
│   │       │   └── previous-compilation-data.bin
│   │       └── test
│   ├── build.gradle.kts
│   └── src
│       ├── main
│       │   ├── java
│       │   │   └── com
│       │   │       └── yang
│       │   │           └── App.java
│       │   └── resources
│       └── test
│           ├── java
│           │   └── com
│           │       └── yang
│           │           └── AppTest.java
│           └── resources
├── gradle
│   ├── libs.versions.toml
│   └── wrapper
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle.kts
相关推荐
出了名的洗发水17 小时前
mac设置共享文件,win用户也可以访问
macos
superbadguy17 小时前
Mac新手入坑
macos
我寄人间雪满头丶17 小时前
GitHub 私有仓库 SSH 访问配置 SOP(Mac / Windows 通用)
macos·ssh·github
2501_9159184117 小时前
iOS App 测试方法,Xcode、TestFlight与克魔(KeyMob)等工具组合使用
android·macos·ios·小程序·uni-app·iphone·xcode
新手村领路人20 小时前
macos如何查看修改系统变量或用户变量
macos
旭日跑马踏云飞20 小时前
【本地玩AI】在macOS+AppleSilicon安装ComfyUI
人工智能·macos
旭日跑马踏云飞21 小时前
【向日葵】macOS连接windows时剪贴板不生效
macos
CrankZ21 小时前
[开源] 软软启动台 - 支持 Windows 和 macOS 的软件启动台(Launchpad)
macos
七夜zippoe1 天前
Python多线程性能优化实战:突破GIL限制的高性能并发编程指南
python·macos·多线程·读写锁·gil·rcu
weixin_462446231 天前
使用 pip3 一键卸载当前环境中所有已安装的 Python 包(Linux / macOS / Windows)
linux·python·macos