I'm also on LM19 btw, I didn't have that "bump".
Thx for pointing out my typo btw.
Now based on your output seems you already had your system cleaned pretty well. But here the /var folder stands out, it shouldn't be that big by far after an
apt clean
:
I suggest you go get some more details to see which folder in there it is:redlined wrote: ⤴Thu Nov 29, 2018 1:28 pmCode: Select all
anyuser@f023:~$ sudo du / -hxd 1 -t 100M 793M /lib 5.8G /usr 149M /opt 5.0G /var 12G /
Code: Select all
sudo du /var/* -sht 100M
Btw sorry to OP if you consider this off-topic, but I guess this is now some general space saving topic.
On that note about logging, if you've got the firewall enabled then by default it spams both syslog and kern.log. This is rarely needed or useful. You can change that behaviour in
/etc/rsyslog.d/20-ufw.conf
or just fully turn firewall logging off: sudo ufw logging off
.Further log duplication happens with systemd's journald service. The journal is quite useful, but if you want, this will toggle journal storage off (or back on):
Code: Select all
sudo sed -i '/none\|auto/{s/#//;s/none/auto/;t1;s/auto/none/;:1}' /etc/systemd/journald.conf
That's excessive, too. Mine is 20 MB full.