Séra Balázs@lemmy.world to linuxmemes@lemmy.world · 4 months agoRemember to not to forget clearing your journallemmy.worldimagemessage-square4fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageRemember to not to forget clearing your journallemmy.worldSéra Balázs@lemmy.world to linuxmemes@lemmy.world · 4 months agomessage-square4fedilink
minus-squareMorethanevil@lemmy.fedifriends.sociallinkfedilinkarrow-up0·4 months agoCleanup 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
minus-squarelseif@sopuli.xyzlinkfedilinkarrow-up0·4 months ago --vacuum-time=2days this implies i keep an operating system installed for that long
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
this implies i keep an operating system installed for that long