Sidharth R
  • Home
  • Posts
  • Journal
  • Home
  • Posts
  • Journal
  • Search
  1. Home
  2. Posts
  3. Linux Journalctl Command Cheat Sheet

Linux Journalctl Command Cheat Sheet

Updated: 15 Apr 2026 ⚬ Page views: loading...

I recently needed to free up disk space by removing old system logs, so I collected the command I used and other useful journalctl commands for future reference.

Disk usage & vacuum (remove old logs)

Show journal disk usage:

BASH
sudo journalctl --disk-usage

Remove archived journal files until total size is below X:

BASH
sudo journalctl --vacuum-size=500M

Remove archived journal files older than a time:

BASH
sudo journalctl --vacuum-time=3d

Remove archived journal files, keeping only the most recent N files:

BASH
sudo journalctl --vacuum-files=3

Maintenance & troubleshooting

Show journalctl help:

BASH
journalctl --help

Show journald service status:

BASH
systemctl status systemd-journald

Check journal file integrity:

BASH
sudo journalctl --verify

Keep reading

  • Ultimate Vi Shortcuts Cheat Sheet
  • Linux Commands Cheat Sheet (Most Used Commands)
  • 4 Ways to Watch Logs Live in Linux
  • Practical Grep: Filtering Errors and Patterns in Log Files

  • Home
  • Posts
  • Journal
  • Quotes
  • Links worth your time
  • About
  • Contact
  • Style guide
  • RSS
© 2026 Sidharth R.
Licensed CC BY-NC-SA 4.0