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

Except that running "ls" doesn't show you the directory content size, and "ncdu" requires the user to make a tea first. The above poster is right in saying that having this built-in to the filesystem metrics would be a huge win.


But `du -h -d1` does, though, or `tree —-du -h`.


The time to scan with ncdu on directory with massive number of directories and files can be long and you don't get progressive stats.

I made jsdu to get progressive (and recursive) size.

I mostly only use jsdu on a few top levels directories, and use ncdu for the rest or after the stats is cached by jsdu.

You can install jsdu with "sudo npm i -g jsdu" or run it without install with "npx jsdu"


duc!

use a cronjob for `duc index`, then you can use `duc ui` to see the index. it doesn’t immediately update on change so it’s not quite what you’re looking for, but it might be the closest thing.


Wow thank you for that! This whole thread is great - I've been missing a utility like this for ages but never took the time to go hunting for it.


If I ever need to know a directory size, du -sh foo/ is already muscle memory, and if OP needs it often he can alias it.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: