3 ms·
In my case the problem is I'm running out of disk space and need to find stuff to delete. So, `du -csh `. Wow, three huge directories. `cd dir1; du -csh `.
by prewett 9y ago
In my case the problem is I'm running out of disk space and need to find stuff to delete. So, `du -csh `. Wow, three huge directories. `cd dir1; du -csh `. Repeat. `du -d 3` would seem to be the solution, but it is pretty noisy. I really want something that prints all the "big" stuff in a tree, nicely indented and sorted by size. I end up using a KDE app ported to macOS that shows all the big files in packed rectangles, but can't remember the name.
- urbanj 9y agoTry ncdu - https://dev.yorhel.nl/ncdu https://dev.yorhel.nl/ncdu It's quite useful and fast
- shric 9y agoProbably KDirStat / WinDirStat / Disk Inventory X
- bennofs 9y agoNcdu is a command line application that does this (a tree with sizes)
- hk__2 9y agoI have the same issue with the same solution. It’s called Disk Inventory X on macOS.
- kbenson 9y agoWhat you're looking for is du -hc | sort -hn | tail No need to visit subdirectories. Throw in a tee /tmp/du.out before the tail to make your life easier.