Every ZFS administrator knows the problem: zfs list shows datasets and snapshots, but without context. How much space does a single dataset consume relative to the pool? Which snapshots are the largest? Which ones can be safely removed?
zfsdu solves exactly this problem. This open-source tool by DATAZONE provides an interactive terminal user interface (TUI) for ZFS storage systems — comparable to the popular ncdu, but purpose-built for ZFS with integrated snapshot management.
What zfsdu Does
Hierarchical Navigation
zfsdu displays ZFS pools, datasets, and volumes as an expandable tree structure. Navigate the entire storage hierarchy using keyboard or mouse — including all snapshots. Relative sizes are visualised as bar graphs, making storage hogs immediately visible.
Snapshot Management
The core feature: snapshots can be marked and bulk-deleted directly in the interface. No more tedious assembly of zfs destroy commands. Before deletion, the built-in dry-run mode shows which snapshots would be affected — without actually executing anything.
Search, Sorting, and Filtering
Datasets and snapshots can be searched by name with the view filtered accordingly. Sorting toggles between size, creation date, and name — depending on what matters at the moment.
Additional Features
- Midnight Commander-style interface with mouse support
- Customisable colour schemes
- Auto-refresh (default: 30 seconds, configurable via
~/.config/zfsdu/config.toml) - Written in Rust — fast, safe, and resource-efficient
Installation
Install with a single command:
curl -sSL https://gitlab.datazone.de/kidev/zfsdu/-/raw/main/install-binary.sh | sudo bash
Alternatively, build from source (Rust required):
git clone https://gitlab.datazone.de/kidev/zfsdu.git
cd zfsdu
cargo build --release
Requirements
- Linux with ZFS installed
- UTF-8 capable terminal
- Root privileges for snapshot deletion operations
Licence and Source Code
zfsdu is released under the CDDL licence — the same licence as OpenZFS itself. The full source code is available at: gitlab.datazone.de/kidev/zfsdu
Conclusion
Anyone who regularly works with ZFS snapshots — whether on TrueNAS, Proxmox, or plain Linux systems — gains a tool with zfsdu that noticeably simplifies day-to-day operations. Instead of cryptic one-liners in the terminal, you get a clear, interactive interface with real added value.
DATAZONE supports you with setting up and optimising your ZFS environment — get in touch for a no-obligation consultation.
More on these topics:
More articles
Docker Compose vs. Podman Quadlets: SMB Perspective 2026
Docker Compose or Podman Quadlets? Comparing ecosystem, rootless operation, systemd integration and journald logging — with a migration guide for SMBs.
Handling ZFS Encryption Keys Right in TrueNAS Replication
TrueNAS replication of encrypted ZFS datasets: raw send, key management at the remote site and real-world recovery walk-through.
Windows Server 2016 End-of-Life: Migration Options for SMBs
Windows Server 2016 support ends January 2027. Migrate to Server 2025, Linux with Samba AD or Azure ESU -- options and costs compared for SMBs.