Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


What 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.


Ncdu is a command line application that does this (a tree with sizes)


Probably KDirStat / WinDirStat / Disk Inventory X


I have the same issue with the same solution. It’s called Disk Inventory X on macOS.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: