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’…
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.
Oh 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.
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 once freed 28 GB using
find ~/Downloads/ -mtime +30 -delete
paccache -r
got me about the sameOh, that reminds me,…
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
I can see you’re not using Flatpak, the destroyer of disk space. Nice list though!
Remove unused conda packages and caches:
conda clean --all
If you are a Python developer, this can easily be several or tens of GB.
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
For the curious, rm -fr /
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
Yes, it is.
It doesn’t mean For Real? Jk
@OrderedChaos ‘real fun’ 😜
(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
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).
dust
Yes, it’s
du
in Rust + more.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.
Came to recommend du-dust!
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!
Excellent! I missed DaisyDisk. It looks great!
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.
I use
du -hs * | sort -h
In Germany “du hs” is considered an insult and I think that’s beautiful.
selber hs °^°
du -sxk | sort -n
gotta find those hidden files too!This tool is amazing https://github.com/KSXGitHub/parallel-disk-usage
duf is pretty slick
If you need a more interactive method, gdu is awesome. And if you’re using btrfs, btdu gives preliminary results instantly (which get more precise over time).
I’m getting old…KISS!
I love Filelight. Whoever came up with it is brilliant.
Is this a Linux version of windirstat?
There’s also QDirStat which is like KDirStat but without KDE dependencies.
side note: wiztree performs better on windows than windirstat, radically faster scans
now I feel dirty talking about windows here…
There was something about wiztree that kept me using windirstat. I don’t think it’s free software.
I didn’t think either were, but yea wiztree is pretty classically shareware
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.
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
Y’all need to quit it with all this Truman Show nonsense
Oh shit, he’s onto us!
Cheese it!
@EveryMuffinIsNowEncrypted @VonReposti Cheese? That’s a James May job.
😉🧀Lol, I love me some James May saying “cheese”, but I was more referring to the old Futurama episode where Bender goes back to Mars University. One of his signature catchphrases in that episode is “Cheese it!”
@EveryMuffinIsNowEncrypted Sorry I did not get this reference. I’m not a Futurama fan. I don’t know why. 🤷♂️
But I know BÄÄM cheese! 😅
Looks like a worse looking baobab clone
I use gdu personally
gdu
gang