go-dirstat
A command line tool for analyzing and visualizing disk usage.
Installation
Using Go:
go install github.com/mlange-42/go-dirstat@latest
Usage
Get help:
dirstat -h
Run in the current folder, with default settings and JSON output
dirstat
Run in the current folder, with default settings and SVG output piped to a file:
dirstat treemap --svg > out.svg
Statistics over file extensions:
dirstat treemap --svg -x > out.svg
References