this post was submitted on 21 Feb 2024
29 points (96.8% liked)

Linux

48186 readers
1225 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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 are viewing a single comment's thread
view the rest of the comments
[–] d3Xt3r@lemmy.nz 15 points 8 months ago (1 children)

You can use ncdu for this. Launch it with the options --show-itemcount --sort=itemcount

[–] isti115@lemmy.world 3 points 8 months ago* (last edited 8 months ago)

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!