From 8b8d1f4925bffa0564e4fb2dfa9a7652a574b12e Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Tue, 25 Feb 2014 10:13:55 +0800 Subject: [PATCH] add journalctl.md --- linux/journalctl.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 linux/journalctl.md diff --git a/linux/journalctl.md b/linux/journalctl.md new file mode 100644 index 0000000000..f3c22a292b --- /dev/null +++ b/linux/journalctl.md @@ -0,0 +1,27 @@ +# journalctl + +> Query the systemd journal + +- Show all messages from this boot + +`journalctl -b` + +- Show all messages from last boot + +`journalctl -b -1` + +- Follow new messages (like `tail -f` for traditional syslog) + +`journalctl -f` + +- Show all messages by a specific unit + +`journalctl -u {{unit}}` + +- Show all messages by a specific process + +`journalctl _PID={{pid}}` + +- Show all messages by a specific executable + +`journalctl {{/path/to/executable}}`