System optimization on Zorin/Linux ...?

I have a small HDD so need to keep it tidy. To achieve that I do 2 things on a roughly monthly schedule.

  1. clean up apt, using:

sudo apt clean

sudo apt-get autoremove

taking time to read and understand the result of autoremove and NOT BLINDLY hitting the "Y" key.

  1. recover space taken by journal files, by:

check disk usage:

journalctl --disk-usage

review:

journalctl -r

start new, archive old:

sudo journalctl --rotate

limit size to 100M and clean:

sudo journalctl --vacuum-size=100M
1 Like