brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: journalctl -q hides the -- Reboot -- lines and permission warnings

Journalctl
~/tips/tip-journalctl-quiet-no-reboot-markers

journalctl -q -b -1

Removes journalctl's own informational lines, so only real log entries remain.

The informational lines that journalctl adds itself can get in the way of a clean copy.

-q suppresses the messages journalctl adds around the entries, such as -- Reboot -- between two boots, and the warnings about journals you cannot read as a normal user. What is left is only the log entries.

journalctl -q -b -1

If you were hoping a warning would tell you that you lack permissions, you will not see it with this flag. Leave it off while you are still working out what you can read.

Further reading: journalctl(1) manual page

More Journalctl tips journalctl -k -g 'killed process' --since "2 days ago" journalctl _PID=1 -b ls -lh /var/log/journal/*/*.journal~ Storage=volatile sudo journalctl --setup-keys All Journalctl tips (81) All topics

Link