4 ms·
> I hate using 'du' Why? On the other hand, I like to have small tools that do one thing and do it well, and that you can combine to do more powerful things.
by hk__2 9y ago
> I hate using 'du'
Why?
On the other hand, I like to have small tools that do one thing and do it well, and that you can combine to do more powerful things. Personal preference, I guess.
- johnny22 9y agohmm, but is it important that the small tools are actually developed separately? or just that you can call them separately? An example would be busybox, which can decide which executable to pretend to be by the target name.
- deleted 9y ago[deleted]
- emodendroket 9y agoI think in a lot of cases it's kind of nice to just get this all in one command.
- prewett 9y agoIn 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.