Cleanup
Check current disk usage:
sudo journalctl --disk-usage
Use rotate function:
sudo journalctl --rotate
Or
Remove all logs and keep the last 2 days:
sudo journalctl --vacuum-time=2days
Or
Remove all logs and only keep the last 100MB:
sudo journalctl --vacuum-size=100M
How to read logs:
Follow specific log for a service:
sudo journalctl -fu SERVICE
Show extended log info and print the last lines of a service:
sudo journalctl -xeu SERVICE
--vacuum-time=2days
this implies i keep an operating system installed for that long
something something nix?
I mean yeah -fu stands for “follow unit” but its also a nice coincidence when it comes to debugging that particular service.
sudo journalctl --disk-usage
panda@Panda:~$ sudo journalctl --disk-usage No journal files were found. Archived and active journals take up 0B in the file system.
hmmmmmm…
Windows isn’t great by any means but I do like the way they have the Event Viewer layout sorted to my tastes.
You just need a bigger drive. Don’t delete anything
Oh lord watch me hoard