this post was submitted on 07 Mar 2025
427 points (96.7% liked)

Linux

54078 readers
594 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 6 years ago
MODERATORS
 

And that's all, I'm happy since I was out of space.

top 50 comments
sorted by: hot top controversial new old
[–] atzanteol@sh.itjust.works 103 points 2 months ago (7 children)

I freed 50gb by running 'docker system prune'...

[–] eager_eagle@lemmy.world 32 points 2 months ago (1 children)

last year I had over 1TB freed by docker system prune on a dev VM. If you're building images often, that's a mandatory command to run once in a while.

[–] folekaule@lemmy.world 12 points 2 months ago (2 children)

I create a cron job with something like: docker system prune -af --filter="until=XXh" where XX is on the order of a few days.

load more comments (2 replies)
[–] lord_ryvan@ttrpg.network 10 points 2 months ago

I once freed 28 GB using find ~/Downloads/ -mtime +30 -delete

[–] rmrf@lemmy.ml 6 points 2 months ago

paccache -r got me about the same

load more comments (4 replies)
[–] eskuero@lemmy.fromshado.ws 67 points 2 months ago* (last edited 2 months ago) (3 children)

Clean all the cache downloads of Arch Linux Packages

pacman -Scc`

Remove unused docker networks and images

docker system prune --all

Cleanup untracked git files that might be in .gitignore such as build and out directories (beware of losing data, use "n" instead of "f" for a dry run)

git clean -xdf

Do an aggresive pruning of objects in git (MIGHT BE VERY SLOW)

git gc --aggressive --prune=now

Remove old journal logs, keeping last seven days

journalctl --vacuum-time 7days

Remove pip cache

pip cache purge

[–] TheHobbyist@lemmy.zip 14 points 2 months ago

Remove unused conda packages and caches:

conda clean --all

If you are a Python developer, this can easily be several or tens of GB.

load more comments (2 replies)
[–] pocopene@lemmy.world 41 points 2 months ago (2 children)

No one showing love for ncdu around here?

[–] flubba86@lemmy.world 7 points 2 months ago* (last edited 2 months ago)

Ncdu is my go-to tool. Can't live without it on the servers I administer. However from this thread I've also learned about gdu, diskonaut and du-dust that I need to check out.

load more comments (1 replies)
[–] bricked@feddit.org 36 points 2 months ago (2 children)

I freed my entire disk by removing the French language pack

[–] MrSoup@lemmy.zip 18 points 2 months ago (6 children)

I recommend it too. It's simple as doing:

sudo rm -rf /

Where "-rf" obviously stands for "remove french".

[–] dev_null@lemmy.ml 22 points 2 months ago* (last edited 2 months ago) (1 children)

The joke goes rm -fr, which stands for "remove french". Yours has double "remove" and is less believable.

[–] MrSoup@lemmy.zip 7 points 2 months ago

Ops, you are right. My bad

[–] xnx@slrpnk.net 20 points 2 months ago (1 children)

(This is a joke don’t do this or you’ll ruin your computer)

load more comments (1 replies)
load more comments (4 replies)
[–] thisisbutaname@discuss.tchncs.de 11 points 2 months ago* (last edited 2 months ago)

For the curious, rm -fr /

[–] klu9@lemmy.ca 27 points 2 months ago (5 children)

Personally I'm loving diskonaut. "Graphical" representation but at, ahem, terminal velocity. Image

[–] some_random_nick@lemmy.world 5 points 2 months ago (1 children)

Jesus, that rustup folder is HUGE

load more comments (1 replies)
load more comments (4 replies)
[–] mvirts@lemmy.world 25 points 2 months ago (1 children)

I'm more of a baobab person myself 😋

[–] whyNotSquirrel@sh.itjust.works 5 points 2 months ago (1 children)
[–] mvirts@lemmy.world 7 points 2 months ago (1 children)

Basically, just using gtk instead of Qt :P

[–] tomenzgg@midwest.social 6 points 2 months ago

I've really enjoyed ncdu (for those looking for a non-GUI option).

[–] asl@mbin.launay.org 23 points 2 months ago (9 children)

The following NEW packages will be installed: filelight gamin kded5 kio kwayland-data kwayland-integration libdbusmenu-qt5-2 libgamin0 libhfstospell11 libkf5auth-data libkf5authcore5 libkf5codecs-data libkf5codecs5 libkf5completion-data libkf5completion5 libkf5config-bin libkf5config-data libkf5configcore5 libkf5configgui5 libkf5configwidgets-data libkf5configwidgets5 libkf5coreaddons-data libkf5coreaddons5 libkf5crash5 libkf5dbusaddons-bin libkf5dbusaddons-data libkf5dbusaddons5 libkf5doctools5 libkf5globalaccel-bin libkf5globalaccel-data libkf5globalaccel5 libkf5globalaccelprivate5 libkf5guiaddons-bin libkf5guiaddons-data libkf5guiaddons5 libkf5i18n-data libkf5i18n5 libkf5iconthemes-bin libkf5iconthemes-data libkf5iconthemes5 libkf5idletime5 libkf5itemviews-data libkf5itemviews5 libkf5jobwidgets-data libkf5jobwidgets5 libkf5kiocore5 libkf5kiogui5 libkf5kiontlm5 libkf5kiowidgets5 libkf5notifications-data libkf5notifications5 libkf5service-bin libkf5service-data libkf5service5 libkf5solid5 libkf5solid5-data libkf5sonnet5-data libkf5sonnetcore5 libkf5sonnetui5 libkf5textwidgets-data libkf5textwidgets5 libkf5wallet-bin libkf5wallet-data libkf5wallet5 libkf5waylandclient5 libkf5widgetsaddons-data libkf5widgetsaddons5 libkf5windowsystem-data libkf5windowsystem5 libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlgui5 libkwalletbackend5-5 libpolkit-qt5-1-1 libqt5texttospeech5 libqt5waylandclient5 libqt5waylandcompositor5 libvoikko1 qtspeech5-speechd-plugin qtwayland5 sonnet-plugins 0 upgraded, 81 newly installed, 0 to remove and 0 not upgraded.

A bit too much to just install one soft. Hard pass.

[–] priapus@sh.itjust.works 38 points 2 months ago

That's very normal if you don't have any KDE apps. If you were using KDE and installed a GNOME app it'd be similar.

[–] abbotsbury@lemmy.world 25 points 2 months ago

It's a KDE application, yes.

[–] arkanelinux@feddit.nl 19 points 2 months ago

Looks like the depends list of the average KDE app on a none KDE system.

[–] rustydrd@sh.itjust.works 15 points 2 months ago

You could try baobab instead.

[–] pebbles@sh.itjust.works 14 points 2 months ago (1 children)

Lol I had no idea it relied on so much. Its just built into KDE. Really great app overall.

[–] Wilmo@lemmy.world 7 points 2 months ago

Basically all KDE apps have the same dependency set. So install one and the next ones will only install the app most likely. On KDE itself you'd already have these.

[–] moonpiedumplings@programming.dev 11 points 2 months ago* (last edited 2 months ago) (3 children)
[moonpie@osiris ~]$ du -h $(which filelight)
316K    /usr/bin/filelight

K = kilobytes.

[moonpie@osiris ~]$ pacman -Ql filelight | awk '{print $2}' | xargs du | awk '{print $1}' | paste -sd+ | bc
45347740

45347740 bytes is 43.247 megabytes. That is to say, the entire install of filelight is only 43 megabytes.

KDE packages have many dependencies, which cause the packages themselves to be extremely tiny. By sharing a ton of code via libraries, they save a lot of space.

load more comments (3 replies)
[–] PushButton@lemmy.world 8 points 2 months ago

My little widget to get the weather, Blazing Fast Uber Duper made in Rust, has like 85 total dependencies from like 3 crates that I need...

My own software is a hard pass for myself...

That's great!

Another thing that is great, since we are talking about disk space: people, check your Rust repositiry, it might be huge.

I deleted that folder and, in my case, freed 12gb. Not too shabby.

load more comments (2 replies)
[–] devfuuu@lemmy.world 21 points 2 months ago (1 children)

The always huge and killing my system space:

  • pacman cache
  • docker bullshit
  • flatpaks
  • journalctl files!
load more comments (1 replies)
[–] sfera@beehaw.org 17 points 2 months ago (1 children)

Looks like the Gnome Disk Usage Analyzer but for KDE.

[–] caseyweederman@lemmy.ca 14 points 2 months ago (1 children)

That's a weird way to spell Baobab

[–] noxypaws@pawb.social 18 points 2 months ago

To be fair Baobab is a weird way to spell Baobab

[–] umbrella@lemmy.ml 17 points 2 months ago

this looks exactly like gnome disk usage analyzer

[–] beeng@discuss.tchncs.de 16 points 2 months ago (6 children)

dust

Yes, it's du in Rust + more.

load more comments (6 replies)
[–] MonkderVierte@lemmy.ml 8 points 2 months ago

My dad's Linux setup couldn't log in. After a bit of investigation, starting the session manually and so on, i got a hunch and indeed; i saw in Baobab that the backup script took the wrong disk, filled up the one with home, making it slow, so the log-in thingie timed out, failing the session.

[–] GustavoM@lemmy.world 7 points 2 months ago (3 children)

This is why I've set up a ramdisk on ~/.cache and ~/Downloads -- "free" automatic cleanup plus a tad more of performance because why not.

load more comments (3 replies)
[–] dm9pZCAq@lemmy.ml 7 points 2 months ago (3 children)
load more comments (3 replies)
[–] commander@lemmings.world 7 points 2 months ago

I love Filelight. Whoever came up with it is brilliant.

[–] Damage@feddit.it 6 points 2 months ago (6 children)
[–] azolus@slrpnk.net 11 points 2 months ago (1 children)

In Germany "du hs" is considered an insult and I think that's beautiful.

load more comments (1 replies)
load more comments (5 replies)
[–] Jode@midwest.social 6 points 2 months ago (5 children)

Is this a Linux version of windirstat?

[–] Wolfizen@pawb.social 7 points 2 months ago

There's also QDirStat which is like KDirStat but without KDE dependencies.

[–] emb@lemmy.world 6 points 2 months ago (11 children)

There's a more direct version of that, I guess from KDE, called KdirStat.

I hadn't heard of the one in the op. But if I had to guess, it looks like it's a different take on the same idea.

load more comments (11 replies)
load more comments (3 replies)
[–] somenonewho@feddit.org 6 points 2 months ago

Personally I'm a huge fan of dust

[–] uridl@feddit.org 5 points 2 months ago

Looks like a worse looking baobab clone

load more comments
view more: next ›