Journal Control

From 6bit.ch wiki
Revision as of 08:40, 21 August 2023 by Xbl (talk | contribs) (→‎Use)
Jump to navigation Jump to search

journalctl

May be used to query the contents of the systemd(1) journal as written by systemd-journald.service(8).

Use

journalctl -f follow latest messages
journalctl -t sshd show messages of a particular service

Useful Flags

-p <priority> show messages with $priority and above only
-b <priority> show messages since last boot only