查看磁盘空间使用情况并快速删除不需要的数据。
dua(即 Disk Usage Analyzer)是一款方便了解给定目录磁盘空间使用情况的工具。它默认并行运行,会充分发挥你的 SSD 性能,以最快的速度提供相关信息。它还可以选择性地删除多余的数据,而且比 rm 更快。
运行 dua i 可启动交互模式,用于浏览和删除文件。
curl -LSfs https://raw.githubusercontent.com/Byron/dua-cli/master/ci/install.sh | \
sh -s -- --git Byron/dua-cli --crate duasudo port selfupdate
sudo port install dua-clibrew update
brew install dua-cliLinux 需要显式指定目标以获取 MUSL 构建版本。
curl -LSfs https://raw.githubusercontent.com/Byron/dua-cli/master/ci/install.sh | \
sh -s -- --git Byron/dua-cli --target x86_64-unknown-linux-musl --crate duascoop install duawinget install Byron.dua-cli请查看发布页面,手动下载适用于多种平台的预编译二进制文件。
发布压缩包中包含构建来源证明(provenance attestations)。下载压缩包后,请使用 GitHub CLI 验证其是否由本仓库构建:
gh attestation verify ./dua-v2.39.1-aarch64-apple-darwin.tar.gz --repo Byron/dua-cli通过 cargo 安装,cargo 可使用 [rustup][rustup] 获取
对于 Unix……
cargo install dua-cli
# And if you don't need a terminal user interface (most compatible)
cargo install dua-cli --no-default-features
# Compiles on most platforms, with terminal user interface
cargo install dua-cli --no-default-features --features tui-crossplatform对于 Windows,目前需要 nightly 特性。
cargo +nightly install dua-cli通过 `xbps
暂无开放 Issues,或尚未同步最近议题。