From 0a240c6ab620f4ec01b6d41787e159e872045b8d Mon Sep 17 00:00:00 2001 From: David M Date: Wed, 5 Feb 2014 10:26:04 -0500 Subject: [PATCH] add cheat sheet for journalctl --- cheatsheets/journalctl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cheatsheets/journalctl diff --git a/cheatsheets/journalctl b/cheatsheets/journalctl new file mode 100644 index 0000000..6c00e7f --- /dev/null +++ b/cheatsheets/journalctl @@ -0,0 +1,21 @@ +# Actively follow log (like tail -f) +journalctl -f + +# Display all errors since last boot +journalctl -b -p err + +# Filter by time period +journalctl --since=2012-10-15 --until="2011-10-16 23:59:59" + +# Show list of systemd units logged in journal +journalctl -F _SYSTEMD_UNIT + +# Filter by specific unit +journalctl -u dbus + +# Filter by executable name +journalctl /usr/bin/dbus-daemon + +# Filter by PID +journalctl _PID=123 +