linux/journalctl.md
... ...
@@ -34,4 +34,10 @@ journalctl _SYSTEMD_UNIT=gdm.service --since yy-mm-dd
34 34
sudo grep -A1 "plugin=panel" /home/<user>/.kde/share/config/plasma-desktop-appletsrc
35 35
```
36 36
37
+clear old logs
38
+```
39
+journalctl --vacuum-time=2d #retain last 2 days
40
+journalctl --vacuum-size=500M #retain last 500MB
41
+```
42
+
37 43
[systemctl](systemctl)