Treefilesize May 2026

Meet treefilesize – a simple trick on top of the classic tree command.

alias tfs='tree -h --du' alias tfs-large='tree -h --du -L 2 | grep -E "\[.*M\]"' 🧠 Disk space mystery? Try treefilesize – a visual tree of your folders with file sizes attached. No more guessing where all your storage went. treefilesize

project/ ├── README.md (1.2 KB) ├── data/ (24 MB) │ ├── raw.csv (18 MB) │ ├── clean.csv (6 MB) ├── scripts/ (8 KB) │ ├── analyze.py (4 KB) │ ├── utils.py (4 KB) └── output/ (512 MB) └── results.pdf (512 MB) Save this as treefilesize and add to your PATH: Meet treefilesize – a simple trick on top

Ever run tree and wished you could see file sizes right next to each item? Or used du -sh but missed the hierarchical clarity? Enter treefilesize — a simple but powerful command-line utility that displays directory structures along with human-readable file sizes. No more guessing where all your storage went

Want only large files? Pipe to grep: tree -h --du | grep "M\|G"