Linux journalctl Cheat Sheet/Vacuum journal to size

Delete archived journals until under size limit.

Section: Output, Export, Maintenance

Vacuum journal to size

bash
bash
sudo journalctl --vacuum-size=500M
Explanation

Use carefully on production systems.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Output, Export, Maintenance
Vacuum journal by age
Delete archived logs older than a time window.
OpenIn sheetbashsame section
Output as JSON
Emit journal entries in JSON format.
OpenIn sheetbashsame section
Pretty JSON output
Human-readable JSON output.
OpenIn sheetbashsame section
Use ISO timestamps
Display logs in short ISO format.
OpenIn sheetbashsame section
Show journal disk usage
Inspect space used by journal files.
OpenIn sheetbashsame section
Verify journal files
Check journal file integrity.
OpenIn sheetbashsame section