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!

  • @mvirts
    link
    6
    edit-2
    7 months ago

    du --inodes | sort -h

    maybe?

    • @isti115OP
      link
      English
      37 months ago

      Thank you for the idea! I didn’t know about the --inodes flag before, this seems like a viable solution for systems where I can’t / don’t want to install additional software!