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
TrueNAS 27 instead of 26: iXsystems renames the December release — what it means for planning and upgrade paths
iXsystems has renamed the previously-known-as TrueNAS 26 successor to 25.10 Goldeye into TrueNAS 27, just weeks before the December release. What is behind the rename, which tech base is in there (kernel 6.18, OpenZFS 2.4), when GA lands, and how the upgrade path from 25.10 realistically looks.
What Does Storage Really Cost? Cloud vs. TrueNAS Over 5 Years
Cloud storage looks cheap — until egress, API calls and 24/7 retention flip the bill. An honest 5-year TCO comparison: when on-premises TrueNAS pays off, with a worked example and configurator.
TrueNAS as an Immutable Backup Target for Veeam & Proxmox (S3 Object Lock)
Immutable backups against ransomware: how to use TrueNAS as an S3-compatible immutable target with Object Lock for Veeam and Proxmox Backup Server — on-premises, without cloud egress.