There are plenty of utilities (GUI, such as filelight
and TUI, such as dua
as well) for analyzing disk usage by space, but I would like to view my folders based on the count of files, as I’m making backups, and folders with lots of small files (e.g. node_modules
) take very long to move around, so I guess that I’d be better of compressing those into a single file before archiving, as it’s already highly unlikely that I’ll need to access them anyway.
Thanks for any pointers in advance!
You can use
ncdu
for this. Launch it with the options--show-itemcount --sort=itemcount
Oh, wow, thank you! I had
ncdu
installed, but it was an older version, which didn’t yet have this feature. Now that I updated to the newest (Zig based 🎉) release this looks perfect for my needs!