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

Linux

52775 readers
629 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
 

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

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 105 points 4 weeks ago (7 children)

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

[–] [email protected] 32 points 4 weeks 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.

[–] [email protected] 12 points 4 weeks 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)
[–] [email protected] 10 points 4 weeks ago

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

[–] [email protected] 6 points 4 weeks ago

paccache -r got me about the same

load more comments (4 replies)
[–] [email protected] 67 points 4 weeks ago* (last edited 4 weeks 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

[–] [email protected] 14 points 4 weeks 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)
[–] [email protected] 41 points 4 weeks ago (2 children)

No one showing love for ncdu around here?

[–] [email protected] 7 points 3 weeks ago* (last edited 3 weeks 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)
[–] [email protected] 36 points 4 weeks ago (2 children)

I freed my entire disk by removing the French language pack

[–] [email protected] 18 points 4 weeks ago (6 children)

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

sudo rm -rf /

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

[–] [email protected] 22 points 4 weeks ago* (last edited 4 weeks ago) (1 children)

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

[–] [email protected] 7 points 4 weeks ago

Ops, you are right. My bad

[–] [email protected] 20 points 4 weeks 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)
[–] [email protected] 11 points 4 weeks ago* (last edited 4 weeks ago)

For the curious, rm -fr /

[–] [email protected] 27 points 4 weeks ago (5 children)

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

[–] [email protected] 5 points 3 weeks ago (1 children)

Jesus, that rustup folder is HUGE

load more comments (1 replies)
load more comments (4 replies)
[–] [email protected] 25 points 4 weeks ago (3 children)

I'm more of a baobab person myself 😋

load more comments (3 replies)
[–] [email protected] 23 points 4 weeks 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.

[–] [email protected] 38 points 4 weeks 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.

[–] [email protected] 25 points 4 weeks ago

It's a KDE application, yes.

[–] [email protected] 19 points 4 weeks ago

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

[–] [email protected] 15 points 4 weeks ago (1 children)

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

[–] [email protected] 7 points 3 weeks 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.

[–] [email protected] 15 points 4 weeks ago

You could try baobab instead.

[–] [email protected] 11 points 3 weeks ago* (last edited 3 weeks 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)
[–] [email protected] 8 points 3 weeks 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)
[–] [email protected] 20 points 4 weeks ago (1 children)

The always huge and killing my system space:

  • pacman cache
  • docker bullshit
  • flatpaks
  • journalctl files!
load more comments (1 replies)
[–] [email protected] 17 points 4 weeks ago (1 children)

Looks like the Gnome Disk Usage Analyzer but for KDE.

[–] [email protected] 14 points 4 weeks ago (1 children)

That's a weird way to spell Baobab

[–] [email protected] 18 points 4 weeks ago

To be fair Baobab is a weird way to spell Baobab

[–] [email protected] 17 points 4 weeks ago

this looks exactly like gnome disk usage analyzer

[–] [email protected] 16 points 4 weeks ago (6 children)

dust

Yes, it's du in Rust + more.

load more comments (6 replies)
[–] [email protected] 8 points 3 weeks 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.

[–] [email protected] 7 points 4 weeks ago

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

[–] [email protected] 7 points 4 weeks ago (3 children)
load more comments (3 replies)
[–] [email protected] 7 points 4 weeks 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)
[–] [email protected] 6 points 4 weeks ago (5 children)

Is this a Linux version of windirstat?

[–] [email protected] 7 points 4 weeks ago

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

[–] [email protected] 6 points 4 weeks ago (1 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.

[–] [email protected] 6 points 4 weeks ago* (last edited 4 weeks ago) (1 children)

Omfg.

I was trying to remember the name of kdirstat ladt night when I stumbled across filelight and made use of that instead.

And now there's a thread on this exact topic. Y'all need to quit it with all this Truman Show nonsense, Baader-Meinhof alone isn't enough to explain how frequently shit like this happens. XD

[–] [email protected] 8 points 4 weeks ago (1 children)

Y'all need to quit it with all this Truman Show nonsense

Oh shit, he's onto us!

[–] [email protected] 7 points 4 weeks ago (8 children)
load more comments (8 replies)
load more comments (3 replies)
[–] [email protected] 6 points 4 weeks ago (6 children)
[–] [email protected] 11 points 4 weeks 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)
[–] [email protected] 6 points 3 weeks ago

Personally I'm a huge fan of dust

load more comments
view more: next ›