Hacker News new | ask | show | jobs
by j_s 3483 days ago
Slightly related utility I discovered to my great delight today: ncdu - "htop for disk space usage"

https://dev.yorhel.nl/ncdu

2 comments

ncdu has an option to store the scanned fs and display it again without walking the FS; useful if you're dealing with deep mess and slow, remote or else data.
oh yes, i mostly don't bother with 'du -sch' anymore since ive come to know ncdu
Have you tried

  du -macx ~ | egrep '^[0-9]{2}' | sort -n

egrep filter for files at least 10m ends up being a nice speed up, otherwise you end up spending most of the time sorting all the tiny files to the top while up writing hundreds of megabytes of /tmp/sortXXXX files in the process.