And that’s all, I’m happy since I was out of space.
Personally I’m a huge fan of dust
I freed 50gb by running ‘docker system prune’…
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.
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.ah, this filter by timestamp might be very useful to me, thanks
I’m new to docker and all of my shit stopped working recently. Just wouldn’t load. Took about a half hour to find out that old images were taking up about 63GB on my 100GB boot partition, resulting in it being completely full.
I added the command to prune 3 month old images to my update scripts.
Yeah, it’s really not called out in the docs. I found out the same way.
I once freed 28 GB using
find ~/Downloads/ -mtime +30 -delete
paccache -r
got me about the sameOh hey thanks for reminding me, freed 5GB which should buy me a bit of time on upgrading the server I use for this lemmy instance.
Oh, that reminds me,…
Personally I’m loving diskonaut. “Graphical” representation but at, ahem, terminal velocity.
Jesus, that rustup folder is HUGE
One of the things I dislike about Rust is the massive amount of disk space and time it takes to do a download, compile, test run.
2GB of dependencies and build files for a 200K binary is a bit much.
Linky pls
https://github.com/imsnif/diskonaut
No package for my distro, I “installed” an AppImage with AM (which is also how I discovered it)
tyvm
I use dua, but this looks neat too.
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
Remove unused conda packages and caches:
conda clean --all
If you are a Python developer, this can easily be several or tens of GB.
I can see you’re not using Flatpak, the destroyer of disk space. Nice list though!
I normally use
rm
for that. Orwipefs
if I’m feeling particularly spicy.Filelight is about finding the folders you don’t use that take a lot of space. Basically an easier way to look into which folder takes up what.
Wooosh 😉
No one showing love for ncdu around here?
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.
Goat
I freed my entire disk by removing the French language pack
I recommend it too. It’s simple as doing:
sudo rm -rf /
Where “-rf” obviously stands for “remove french”.
The joke goes
rm -fr
, which stands for “remove french”. Yours has double “remove” and is less believable.Ops, you are right. My bad
(This is a joke don’t do this or you’ll ruin your computer)
You can run it without causing any problems if you add the
--no-preserve-root
flag as well of course
Yes, it is.
It doesn’t mean For Real? Jk
@OrderedChaos ‘real fun’ 😜
For the curious, rm -fr /
I’m more of a baobab person myself 😋
Isn’t it the same?
Basically, just using gtk instead of Qt :P
I’ve really enjoyed
ncdu
(for those looking for a non-GUI option).
The always huge and killing my system space:
- pacman cache
- docker bullshit
- flatpaks
- journalctl files!
In case you don’t already know about it, paccache (part of the pacman-contrib package) will let you easily remove old packages from the pacman cache
dust
Yes, it’s
du
in Rust + more.Isn’t that a wayland notification daemon already?
Edit: no, that’s dunst.
Btw, how do you do the background color thing?
Now someone needs to do a rewrite of dunst in rust called runst to make the confusion complete.
I was confused what you meant by background colour thing so I went to
dust
docs haha.Now I got you. It’s a codeblock so it shows in monospace font. Look up .md formatting for tips.
In this case its a word between backticks `
Ah, right, it’s the
inline code
. Mindslip. Thanks!
Came to recommend du-dust!
I have to remember to check this out. its on my reminders in my self host calendar but its been offline fpr quite some time after moving.
Looks like the Gnome Disk Usage Analyzer but for KDE.
That’s a weird way to spell Baobab
To be fair Baobab is a weird way to spell Baobab
Excellent! I missed DaisyDisk. It looks great!
i use https://dev.yorhel.nl/ncdu for this
Also dust
I’m à qdirstat guy : https://github.com/shundhammer/qdirstat
I believe FileLight (in OP above) is a fork of or built on top of QDirstat.
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.I might do that just to force myself to organize and move files out of downloads.
I don’t think you’ll need to do that, unless you are planning to download files that are over 4Gb long and/or you are using a potato that has less than 1 Gb of ram.
t. I’ve set my entire ram into a ramdisk, and the performance actually IMPROVED compared to not setting a ramdisk at all.
I don’t think they meant forcing themselves because their RAM would fill up, but because their stuff would be gone after rebooting if they didn’t move it.