A du-like tool that shows the size of files and directories in a live terminal histogram. Bars compare items at the top level, and the total includes files in subdirectories.
go install github.com/mtibben/duh@latestRun duh to scan the current directory, or pass a path such as duh ~/Downloads.
Run duh -i ~/Downloads to browse the histogram after the scan finishes. Use ↑ and ↓ to select a row, Enter to expand or collapse a directory, ← to collapse or move to its parent, and q to quit.
$ duh ~
#### 6.3G Dropbox
#### 6.3G Projects
#### 6.5G Pictures
##### 9.2G Downloads
############# 23.8G Library
################# 30.8G Music
#################### 38.2G VirtualBox VMs
TOTAL: 137.7G (827784 files)
Use Go 1.27.4 or newer and golangci-lint v2.15.0.
go test ./...
golangci-lint run- colour
- globbing