百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

dua-cli

> DevOps
开源

查看磁盘空间使用情况并快速删除不需要的数据。

6.1K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

查看磁盘空间使用情况并快速删除不需要的数据。

dua(即 Disk Usage Analyzer)是一款方便了解给定目录磁盘空间使用情况的工具。它默认并行运行,会充分发挥你的 SSD 性能,以最快的速度提供相关信息。它还可以选择性地删除多余的数据,而且比 rm 更快。

运行 dua i 可启动交互模式,用于浏览和删除文件。

安装

二进制发布版本

MacOS

bash
curl -LSfs https://raw.githubusercontent.com/Byron/dua-cli/master/ci/install.sh | \
    sh -s -- --git Byron/dua-cli --crate dua

通过 MacPorts 在 MacOS 上安装:

bash
sudo port selfupdate
sudo port install dua-cli

通过 Homebrew 在 MacOS 上安装

bash
brew update
brew install dua-cli

Linux

Linux 需要显式指定目标以获取 MUSL 构建版本。

bash
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 dua

通过 Scoop 在 Windows 上安装

bash
scoop install dua

通过 WinGet 在 Windows 上安装

bash
winget install Byron.dua-cli

预编译二进制文件

请查看发布页面,手动下载适用于多种平台的预编译二进制文件。

发布压缩包中包含构建来源证明(provenance attestations)。下载压缩包后,请使用 GitHub CLI 验证其是否由本仓库构建:

bash
gh attestation verify ./dua-v2.39.1-aarch64-apple-darwin.tar.gz --repo Byron/dua-cli

Cargo

通过 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

VoidLinux

通过 `xbps

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustcleanerdiskefficientfast

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理