I have limited / disk space, and due to excessively big log files from certain apps, I sometimes run out of diskspace. To solve this, I’ve redirected the log folders to a network NAS device, which works great. However when any upgrades occur to the OS or apps, they default back to the /* drive and cause out of space issues (even with ln, etc.)
Using du isn’t exactly easy, when one has extremely large network drvices at /mnt and various ln’s in the OS (even when using --exclude=).
I was looking around for a GUI Disk analyser solution and found baobab, install it and it works great as a GUI.
I was wondering if there are any other dietpi solutions around, other than du, to quickly and easily analyse disk space/usage per folder?
du -a / --exclude /mnt/<whatever> | sort -n -r | head -n 20
The --exclude /mnt/<whatever> is an example of you want to exclude some folders, the < throws the error. Remove the exclude part of you don’t want to exclude anything
that did the trick. but what do I do with the output?
I would like to know which folder is the culprit. there must be some big temp files or something messing up my install. I do not need dietpi_backup since I have the whole VM cloned (as a backup). how can I delete those 1.x GB?