I freed 30GB using Filelight
from SolarPunker@slrpnk.net to linux@lemmy.ml on 07 Mar 13:46
https://slrpnk.net/post/19201585
from SolarPunker@slrpnk.net to linux@lemmy.ml on 07 Mar 13:46
https://slrpnk.net/post/19201585
And that’s all, I’m happy since I was out of space.
threaded - newest
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
prune as fuck
paccache -r
got me about the sameI once freed 28 GB using
find ~/Downloads/ -mtime +30 -delete
Oh, that reminds me,…
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.
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 freed my entire disk by removing the French language pack
For the curious, rm -fr /
I recommend it too. It’s simple as doing:
Where “-rf” obviously stands for “remove french”.
(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@MrSoup @bricked
I know but was was the parameter for 'force recursive' ?
Yes, it is.
It doesn’t mean For Real? Jk
The joke goes
rm -fr
, which stands for “remove french”. Yours has double “remove” and is less believable.Ops, you are right. My bad
I’m here to promote
fclones
. I’ve used it twice and recovered over a terabyte on my NAS the last time I used it. I’m not affiliated. Hyperspace for Mac is similar (but different) and I haven’t used it, but it was developed by my favorite nerd podcast host. I’m planning to test it out eventually, but the latestfclones
run was only about a month ago, so it doesn’t make sense to try it yet.Fclones is a great tool, but it’s for finding duplicate files and replacing them with sym-/hard-/reflinks.
I recommend using the --cache option to make subsequent runs extremely quick.
I will check this out!
Is this a Linux version of windirstat?
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
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!”
<img alt="" src="https://www.youtube.com/watch?v=YlJOaWw6XR8">
@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! 😅
It is totally valid that you are not. We all have our preferences. :)
With that being said, I don’t get the “BÄÄM” reference. Hehe.
@EveryMuffinIsNowEncrypted
Its a reference to a german video clip. It was a true classic in our group. :D
https://www.youtube.com/watch?v=BxBimGxb3GI
<img alt="" src="https://lemmy.blahaj.zone/pictrs/image/33dbea38-01f0-48c5-ac66-548f5399736b.webp">
(I don’t speak German.)
@EveryMuffinIsNowEncrypted Don't worry. English for clmminicarion is just fine. It was not meant to be malicious.
I just saw this video sooo many times, it was kind of a standard response.
BÄÄM is like the German version of BOOM in comics.
Therefore "BÄM Lee" because he knocks people out with one punch.
Its spoken like the beginning of BAd behaviour. Maybe that's helpful. 😊
Oh that’s funny x3
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
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).That’s when you know it’s time for a fresh install
Nah, in a rolling distro it’s normal, they were mostly unused stuff hide in /home, and useless yay pkg.
Do you delete all your files on a reinstall? Documents, photos, videos, games?
I usually keep important stuff on my server but things like games and stuff I purge with the fresh install and just download the games I’m actively playing, also helps clear up any issues from installing random junk during the months between as I settle on what programs I like
Separate partitions for / and /home, save all your data, configs, etc. but you can still distrohop!
Sir, this is not Windows.
I’m still pretty new to Linux so I break stuff pretty often, like recently I was trying to get opencl working with my amd gpu and I ended up causing every video I played to stutter constantly.
And I’ve been trying out new software to control fans or rgb and following guides making me enter commands until I figure out something that works I note it down so when I do a fresh install again I can easily configure it without all the trial and error etc and install only the software I found that I liked
That plus distro hopping
That kinda makes sense at this stage. If you spend time understanding what those commands do, you’d understand how the system works, and most importantly how to not fuck it up. Keep in mind there’s a lot of misinformation and bad practices in guides out there. People who bare know more than you feel confident to share snippets without warning. Ten or twenty years ago much fewer people had experience with Linux and most people confident enough to write were technical people that knew what they were talking about. Destructive misinformation was less.
But yeah when you learn, the need or urge to reinstall disappears. I stopped reinstalling in 2014. Took me 9 years to unfuck my Windows brain and understand enough to not shoot myself in the feet. Main machine hasn’t been reinstalled since then. That’s with replacing multiple main boards, switching AMD > Intel > AMD, changing SSDs, going from single SSD to mdraid, increasing in size over time, etc.
So now I’m curious what distro you like most? I’ve been using popos for about a year at this point then tried fedora for about a week and now installed arch to feel around
The machine that was last installed in 2014 is Ubuntu LTS. It’s been upgraded through all the LTS releases since then. Currently on 22.04 with the free Ubuntu Pro enabled. I use a mix of Ubuntu LTS and Debian stable on other machines. For example my laptop is on Debian 12. Debian has been the most reliable OS and community for over 30 years and I believe it’ll still be around 30 years from now, if we haven’t destroyed ourselves. 😂
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.
Does Linux have spacesniffer?
No, and I miss it. Space sniffer was so good.
Clean all the cache downloads of Arch Linux Packages
Remove unused docker networks and images
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)
Do an aggresive pruning of objects in git (MIGHT BE VERY SLOW)
Remove old journal logs, keeping last seven days
Remove pip cache
Remove unused conda packages and caches:
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!
Uninstall unused flatpak dependencies:
I love Filelight. Whoever came up with it is brilliant.
i use dev.yorhel.nl/ncdu for this
Also dust
I’m à qdirstat guy : github.com/shundhammer/qdirstat
I believe FileLight (in OP above) is a fork of or built on top of QDirstat.
Looks like a worse looking baobab clone
I use
du -hs * | sort -h
In Germany “du hs” is considered an insult and I think that’s beautiful.
selber hs °^°
This tool is amazing github.com/KSXGitHub/parallel-disk-usage
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!
duf is pretty slick
du -sxk | sort -n
gotta find those hidden files too!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
gdu
gangThe always huge and killing my system space:
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
My
/
is a tmpfs.There is no state accumulating that I didn’t explicitly specify, exactly because I don’t want to deal with those kind of chores.
These tools are also useful for finding large files in your home directory. E.g. I’ve found a large amount of Linux ISOs I didn’t need anymore.
My users home directory is ephemeral as well, so this wouldn’t happen. Everything I didn’t declare to persist is deleted on reboot.
What I do use tools like these for is verifying that my persistent storage paths are properly bind mounted and files end up in the correct filesystem.
I use
dust
for this, specifically with the-x
flag to not traverse multiple filesystems.I use gdu personally
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?
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!Now someone needs to do a rewrite of dunst in rust called runst to make the confusion complete.
No one showing love for ncdu around here?
Goat
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.
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.
Lol I had no idea it relied on so much. Its just built into KDE. Really great app overall.
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.
Looks like the depends list of the average KDE app on a none KDE system.
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.
You could try baobab instead.
It’s a KDE application, yes.
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.
On gtk desktops it’s something like Baobab. Too sad that the big guys can’t make lightweight and standalone software.
flatpak install flathub org.kde.filelight
K = kilobytes.
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.
It being KDE is even less reason to use it
you do realize this makes everyone immediately discard your opinion, because it’s useless, right?
.
Those are rookie numbers.
this looks exactly like gnome disk usage analyzer
Personally I’m loving diskonaut. “Graphical” representation but at, ahem, terminal velocity. <img alt="Image" src="https://raw.githubusercontent.com/imsnif/diskonaut/main/demo.gif">
I use dua, but this looks neat too.
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
github.com/imsnif/diskonaut
No package for my distro, I “installed” an AppImage with AM (which is also how I discovered it)
tyvm
Excellent! I missed DaisyDisk. It looks great!
GDU: i.xno.dev/u/WWyrND.png
I like Bleachbit but I’ll check this out
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.
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 😉
Personally I’m a huge fan of dust
Is there any disk usage tool that allows you to browse the tree while it’s still being calculated, prioritizing current directory?