Treefilesize Better May 2026
Example:
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: treefilesize
git clone https://github.com/yourname/treefilesize cd treefilesize sudo cp treefilesize /usr/local/bin/ Example: project/ ├── README
$ treefilesize ~/Downloads Downloads/ ├── resume.pdf (340 KB) ├── video.mp4 (1.2 GB) ⚠️ └── archive/ (800 MB) 💡 Pro tip: Combine with grep or --du flag in standard tree . Like and subscribe for more CLI hacks
Stop guessing. Start visualizing. Like and subscribe for more CLI hacks.
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.
#DevTools #Linux #StorageManagement treefilesize Display directory tree with file sizes and total folder usage. Installation