Keep journal logs after reboot (persistent journal)
Create /var/log/journal and restart journald so boot logs are kept permanently and `journalctl --boot=-1` can inspect the previous boot.
01Command
$ sudo mkdir -p /var/log/journal && sudo systemd-tmpfiles --create --prefix /var/log/journal && sudo systemctl restart systemd-journald02What it does
Many distros ship a volatile journal stored only in /run/log/journal, so all logs disappear at shutdown — making it impossible to investigate why the last boot crashed. The journal switches to persistent storage automatically when /var/log/journal exists. Disk use is then capped by SystemMaxUse (default: 10% of the filesystem) rather than growing unbounded.
03Risk
04Undo
$ sudo rm -rf /var/log/journal && sudo systemctl restart systemd-journald05Sources
- journald.conf(5) — journal daemon configurationEvidence: describes Storage=persistent keeping the journal in /var/log/journal
- journald.conf(5) — journal storage configurationEvidence: Storage=persistent keeps logs in /var/log/journal across boots
Last verified: 2026-09-18 · Category: System & Settings
06Related solutions
One command that prints every interface with its state and IPv4/IPv6 addresses in a short table — the modern, memorable replacement for digging through `ifconfig` or the verbose `ip addr` output.
The routing table is the first thing to check when traffic leaves the wrong interface or the gateway seems dead — and `ip route show` is the quick, modern way to read it.
The fastest way to answer 'is the firewall blocking me?' — netcat in scan mode attempts one TCP connection and prints whether it succeeded.