`tw93/Mole` 是一款专为 macOS 设计的命令行清理工具 ylc3000 2025-11-16 0 浏览 0 点赞 resource My initial search results seem to contain information about two different repositories named "Mole". * **`tw93/Mole`**: This is a Mac cleaning tool written in Shell, Rust, and Swift. Its goal is to perform deep system cleanup, thorough uninstallation of apps, and disk analysis. It is described as a terminal-based, lightweight alternative to graphical apps like CleanMyMac. * **`davrodpin/mole`**: This is a CLI application written in Go for creating and managing SSH tunnels, focusing on resiliency and user experience. It helps in port forwarding. The user's query is `github.com/tw93/Mole`. Therefore, I need to focus on the Mac cleaning tool. I have enough information to provide a comprehensive introduction. I will describe its purpose, main features, how to install and use it, and what makes it stand out. I will use the information from the search results to structure the response.The user is asking for an introduction to the GitHub repository `github.com/tw93/Mole`. Based on the search results, this repository is a command-line tool specifically for macOS designed for deep system cleaning and application uninstallation. Here's a plan to structure the response: 1. **Headline and Overview:** Start with a clear title identifying the project and a brief summary of what it is. It's a Mac cleaning tool that runs in the terminal. 2. **Core Purpose:** Explain the problem it solves. Macs accumulate junk files (caches, logs, etc.) and application leftovers. `Mole` aims to clean these more thoroughly than some popular graphical alternatives. 3. **Key Features:** Detail the main functionalities based on the search results. * **Deep System Cleanup:** Mention that it cleans caches, logs, and temporary files beyond what many other tools do. * **Thorough Uninstallation:** Highlight its ability to scan numerous locations to remove all leftover files from an application, not just the `.app` file. * **Interactive Disk Analyzer:** Describe the feature that allows users to navigate their disk usage in the terminal and delete large files. * **CLI-based and Lightweight:** Emphasize that it's a fast, terminal-based tool with keyboard navigation. * **Safety Features:** Mention the `--dry-run` mode for previewing changes and the whitelist functionality to protect specific caches. * **Ease of Use:** Point out the simple commands (`mo`, `mo clean`, `mo uninstall`) and integrations with launchers like Raycast and Alfred. 4. **Installation and Usage:** Provide the common installation commands (Homebrew and curl script) and list the basic commands for running the tool. 5. **Target Audience and Philosophy:** Explain who would benefit from this tool (developers, terminal lovers) and its philosophy (lightweight, no ads, no fancy UI, just powerful functionality). 6. **Author and Community:** Briefly mention the author (tw93) and that it's a community-driven project, encouraging contributions. 7. **Conclusion:** Summarize why `Mole` is a noteworthy tool for Mac users who are comfortable with the command line. This structure will provide a comprehensive and user-friendly introduction to the `tw93/Mole` repository. I will use the search results to populate each section with accurate details and citations.### Mole: 一款为 Mac 打造的深度清洁命令行工具 `tw93/Mole` 是一个在 GitHub 上备受关注的开源项目,它是一款专为 macOS 设计的命令行清理工具。 正如其名“鼹鼠”一样,这款工具致力于深入挖掘并清理系统中的垃圾文件,为用户提供比许多图形界面清理软件更彻底的清洁体验。 该项目由知名的开发者 Tw93 发起,旨在为习惯使用终端的开发者和高级用户提供一个轻量、高效且强大的系统维护选择。 #### 核心理念与特性 与 CleanMyMac 等拥有华丽界面的商业软件不同,Mole 的核心理念是回归本质:简洁、高效、透明。 它完全在终端中运行,没有广告和付费功能,只专注于做好清理这一件事。 其主要功能包括: * **深度系统清理**:Mole 能够扫描并清理系统中的各类缓存文件、日志、临时文件以及其他“垃圾”,其清理范围比许多传统清理工具更广泛。 * **彻底的应用卸载**:在卸载应用时,Mole 会扫描全盘超过 22 个位置,以确保移除所有相关的配置文件和残留文件,而不仅仅是删除 `.app` 文件本身。 * **交互式磁盘分析器**:用户可以通过 `mo analyze` 命令启动一个交互式界面,使用方向键浏览文件夹,快速定位并删除占用空间的大文件。 * **安全与可控**:为了防止误删,Mole 提供了 `--dry-run` 模式,该模式会列出将要删除的文件而不执行任何操作。 同时,用户还可以通过白名单功能(`--whitelist`)来保护特定的缓存文件不被清理。 * **轻量与高效**:作为一款纯命令行工具,Mole 启动迅速,资源占用极低。它支持方向键导航、分页和 Touch ID 授权,提供了流畅的操作体验。 * **便捷的快捷启动器集成**:Mole 支持与 Raycast 和 Alfred 等快速启动器一键集成,让用户可以更方便地执行清理和卸载命令。 #### 安装与使用 Mole 提供了非常简单的安装方式,用户可以通过 Homebrew 或直接使用 curl 脚本进行安装。 **通过 Homebrew 安装:** ```bash brew install tw93/tap/mole ``` **通过 curl 安装:** ```bash curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash ``` 安装完成后,可以使用 `mo`(`mole` 的短命令)来执行所有操作。 * `mo`: 显示交互式主菜单。 * `mo clean`: 执行系统清理。 * `mo uninstall`: 启动应用卸载程序。 * `mo analyze`: 启动磁盘空间分析器。 * `mo touchid`: 配置使用 Touch ID 进行 sudo 授权。 * `mo --help`: 查看所有可用命令。 总而言之,`tw93/Mole` 对于那些追求效率、喜欢在终端工作的 Mac 用户来说,是一个极具吸引力的系统清理工具。它凭借其强大的清理能力、高度的透明度和出色的交互设计,成为了同类软件中的一个优秀替代品。 网闻录 `tw93/Mole` 是一款专为 macOS 设计的命令行清理工具