News for hackers. Stuff that matters.
Re:Ncdu – NCurses Disk Usage by kqr on Wednesday December 07, 2022 @04:35PM (#33900618)
One thing ncdu does not improve on over du | sort is that it still needs to scan the full directory structure before even displaying any result.

I would like something that starts estimating sizes immediately, and then refines those estimations as it is able to spend more time. I tried writing it myself, but I ended up not quite knowing how to go about it, because just getting the count of files in a directory takes about as long as getting the total size of said files...

(Another problem is that file sizes are notoriously fat tailed, so any estimation based on a subset of files is likely to underestimate the true size. Maybe by looking at how the estimation grows with more data one can infer something about the tail exponent and use that to de-bias the estimation?)

Re:Ncdu – NCurses Disk Usage by Izkata on Wednesday December 07, 2022 @11:52PM (#33904325)
If you're okay with a GUI, I think that's how baobab works. I think it only shows the intermediate updates if the disk is slow enough, as I remember it doing that in the past, but checking my SSD just now it didn't.
Re:Ncdu – NCurses Disk Usage by kqr on Thursday December 08, 2022 @02:10AM (#33905113)
I will take a look. Thanks!
Re:Ncdu – NCurses Disk Usage by bageljr on Wednesday December 07, 2022 @06:20PM (#33901810)
btdu
Re:Ncdu – NCurses Disk Usage by codetrotter on Wednesday December 07, 2022 @06:40PM (#33901993)
This one? https://github.com/CyberShadow/btdu

Seems to be specific for btrfs

Re:Ncdu – NCurses Disk Usage by kqr on Thursday December 08, 2022 @02:09AM (#33905109)
Interesting idea to use physical addresses on the file system as the sample space, though!