Séra Balázs@lemmy.world to linuxmemes@lemmy.world · 2 years agoRemember to not to forget clearing your journallemmy.worldexternal-linkmessage-square17linkfedilinkarrow-up118arrow-down10
arrow-up118arrow-down1external-linkRemember to not to forget clearing your journallemmy.worldSéra Balázs@lemmy.world to linuxmemes@lemmy.world · 2 years agomessage-square17linkfedilink
minus-squaremorethanevil@lemmy.fedifriends.sociallinkfedilinkarrow-up6·2 years 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-up1·2 years ago --vacuum-time=2days this implies i keep an operating system installed for that long
minus-squaremacniel@feddit.orglinkfedilinkarrow-up1·2 years agoI mean yeah -fu stands for “follow unit” but its also a nice coincidence when it comes to debugging that particular service.
minus-squaresuperkret@feddit.orglinkfedilinkarrow-up0·edit-22 years agouser@u9310x-Slack:~$ sudo journalctl --disk-usage Password: sudo: journalctl: command not found
minus-squaremacniel@feddit.orglinkfedilinkarrow-up0·2 years agoseems like someone doesn’t like systemd :)
minus-squaresuperkret@feddit.orglinkfedilinkarrow-up1·2 years agoI don’t have any feelings towards particular init systems.
Cleanup
Check current disk usage:
sudo journalctl --disk-usageUse rotate function:
sudo journalctl --rotateOr
Remove all logs and keep the last 2 days:
sudo journalctl --vacuum-time=2daysOr
Remove all logs and only keep the last 100MB:
sudo journalctl --vacuum-size=100MHow to read logs:
Follow specific log for a service:
sudo journalctl -fu SERVICEShow extended log info and print the last lines of a service:
sudo journalctl -xeu SERVICEthis implies i keep an operating system installed for that long
I mean yeah -fu stands for “follow unit” but its also a nice coincidence when it comes to debugging that particular service.
seems like someone doesn’t like systemd :)
I don’t have any feelings towards particular init systems.