diskr
diskr is a lightweight terminal file explorer and disk/storage manager for macOS.
It shows a navigable file list, recursive directory sizes, allocated-vs-apparent size details, disk usage gauges, hidden-file toggling, sorting, largest-file reports, reclaimable-space detection, scan baselines with diffing, and safe deletion through the macOS Trash. The disk pane is selectable, so you can jump directly to mounted volumes.
Install
From crates.io:
From a local checkout:
Then run:
To start in a specific directory:
If the path starts with -, use the conventional argument separator:
To print the largest files under a directory:
To find reclaimable space (developer/system caches and repeated build artifacts), each tagged with how safe it is to delete:
To record a scan baseline and later see what changed:
# ...time passes...
To explain APFS/free-space mismatches and local snapshots:
For scripts and reports:
To preview a Time Machine local snapshot thinning request:
To execute it, add the explicit confirmation flag:
Keys
| Key | Action |
|---|---|
| Up/Down, j/k | Move selection |
| Enter | Open selected directory or disk |
| Backspace | Go to parent directory |
| Space | Quick Look selected item |
| f | Reveal selected item in Finder |
| O | Open selected item with the default app |
| r | Refresh the current view and rescan directory sizes |
| o | Cycle sort mode |
| . | Toggle hidden files |
| d | Move selected item to Trash |
| Tab | Switch files/disks pane |
| q, Esc | Quit |
Notes
diskr is macOS-only. Directory sizing uses getattrlistbulk(2) for fast local scans. The TUI sorts by allocated on-disk size and shows apparent size in the status line when it differs. The reclaimable-space report classifies each item as safe, regenerable, or risky to delete, and never deletes anything itself. Scan baselines are stored under ~/Library/Application Support/diskr/ and --diff reports per-child growth without changing the baseline. The APFS space report uses statfs(2), diskutil info -plist, and tmutil listlocalsnapshots to surface free-space gaps and local snapshots. Deletion uses the macOS Trash rather than permanent removal.
Planned differentiators and cleanup ideas live in ROADMAP.md.
The minimum supported Rust version is 1.88.0.
Release Checks