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

All logs with journalctl commands · systemd and journalctl cheatsheet

Was this page helpful?