Changelog
The first release of Mole CLI for Linux, written for Linux from scratch with the same look, keys and safety rules as the macOS CLI. It targets Omarchy and other Arch-based systems first; on other distributions the user-level parts work and the pacman items do not appear.
mo clean: Clears caches apps rebuild by themselves (browsers, Electron apps such as VS Code, Cursor, Obsidian, Discord and Slack, thumbnails, shader caches, about 50 developer tools, old AI coding agent versions, Flatpak app caches), empties the Trash, and trims old pacman packages and journal logs throughpaccacheandjournalctl. Caches of running apps are skipped, and large unknown folders are listed, never removed.mo uninstall: Removes pacman, AUR and Flatpak apps, Omarchy web and terminal apps and AppImages, with each app's size and last use, then moves its leftovers to the Trash, matched by the app's exact ID only.mo optimize: Refreshes font, icon and launcher caches, compacts browser and Thunderbird databases while they are closed, and points out failed services, broken launchers and autostart entries, orphan packages and TRIM switched off on an SSD. It needs no sudo.mo analyze: An interactive disk map that stays on local disks, follows btrfs subvolumes and moves what you delete to the Trash.mo status: Live CPU, memory and zram, disks, network, temperatures, GPU, battery and power draw, with a health score;mo status --jsonprints one snapshot for scripts.mo updateandmo remove: Update checks the release checksum before installing, and the main menu says when a new version is out.
更新日志
Mole CLI for Linux 的第一个版本,从头为 Linux 写的,界面、按键和安全规则跟 macOS 版一致,先支持 Omarchy 和其他基于 Arch 的系统,其他发行版上用户目录部分照常能用,pacman 相关的项不会出现。
mo clean:清理应用会自己重建的缓存,包括浏览器、VS Code、Cursor、Obsidian、Discord、Slack 这类 Electron 应用、缩略图、着色器缓存、约 50 种开发工具、旧版本的 AI 编程工具和 Flatpak 应用缓存,清空废纸篓,再用paccache和journalctl清掉旧的 pacman 包和日志,正在运行的应用的缓存会跳过,不认识的大目录只列出来不删。mo uninstall:卸载 pacman、AUR、Flatpak 应用,Omarchy 的网页应用和终端应用,以及 AppImage,列表里带每个应用的大小和上次使用时间,残留只按应用的精确 ID 匹配并移到废纸篓。mo optimize:刷新字体、图标和启动器缓存,在浏览器和 Thunderbird 关闭时压缩它们的数据库,并指出失败的服务、失效的启动器和自启动项、孤立的包以及 SSD 没开 TRIM 的情况,全程不需要 sudo。mo analyze:交互式磁盘地图,只扫本地磁盘,能跟进 btrfs 子卷,删除的内容会移到废纸篓。mo status:实时显示 CPU、内存和 zram、磁盘、网络、温度、GPU、电池和功耗,附带健康分,mo status --json可以给脚本输出一份快照。mo update和mo remove:更新前会核对发布包的校验和,有新版本时主菜单会提示。
Install
curl -fsSL https://raw.githubusercontent.com/tw93/Mole/linux/install.sh | bashMole installs into ~/.local/share/mole and links mo into ~/.local/bin, with no sudo. Already installed? Run mo update. SHA256SUMS.txt lists the checksum of each archive, and the installer checks it before installing.