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
相关推荐
pe7er19 小时前
macOS 应用无法打开(权限问题)解决方案
macos·mac
harmful_sheep3 天前
mac生效的终端查看
macos
iOS门童4 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~4 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员4 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl843944 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei4 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利4 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o
ShikiSuen4 天前
macOS 的 CpLk 中英切换卡顿的元凶在 InputMethodKit 本身
macos
xiayutian_c4 天前
如虎添翼-MacOS
macos