systemd and journalctl · Logs with journalctl
Delete old logs
Remove journal entries older than seven days.
sudo journalctl --vacuum-time=7d
Caution: Deleted log entries cannot be recovered.
Official systemd and journalctl documentation
More logs with journalctl commands
- Show a service's logs
- Follow a service's logs
- Show recent entries only
- Show errors from this boot
- Show the previous boot's logs
- Show kernel messages
All logs with journalctl commands · systemd and journalctl cheatsheet