Hacker News new | ask | show | jobs
by salmo 1283 days ago
Interesting. I’ve just used df-m | sort -n and walked the tree from the CLI for so long.

I’ve also used windirstat (I think that’s what it was called) years ago on Windows and Disk Inventory X on MacOS graphically.

This seems like a nice in between that could replace both methods for me. I’ll have to try.

The GUI bunch of squares is really only useful when you can hover with a mouse and would be clunky in a TUI even if you could render it. And the FS structure isn’t immediately obvious, so I find myself wasting time wandering hovering over big files and globs of little ones.

I really like to avoid a mouse when I can unless it’s really useful.

3 comments

FYI I recently discovered sort —-human is a thing so you can keep the K/M/G units if you want to.

However I use ncdu all the time.

Yeah, my habits come from using GNU, BSD, SysV and having to use the lowest common denominator.
> I’ve also used windirstat (I think that’s what it was called) years ago on Windows and Disk Inventory X on MacOS graphically.

On Windows, the new hotness is WizTree, which rather than recursively calling directory listing functions, it directly reads and parses the file tables itself. This makes it orders of magnitude faster. I have a 2 TB hard drive full of a million files, and WizTree reads and parses it all in under a minute, whereas I can expect WinDirStat to take half an hour.

That's pretty brilliant.

My windows experience is really out of date. I knew NT4 and 2000 the best. Then I picked up 2008 for a while supporting small businesses. I don't hate it or anything, but am definitely deeper on Unixes and about equal on VMS that I supported as my NT4/2000 time. I'll work on whatever pays :).

You mean `du` right?
I always used "du -S | sort -n" ... I think... it's been a long time since I've needed to worry about disk space.
Yes, just dumb fingers typing the comment. :(