add journalctl.md

This commit is contained in:
Felix Yan
2014-02-25 10:13:55 +08:00
parent 3082d8c406
commit 8b8d1f4925

27
linux/journalctl.md Normal file
View File

@@ -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}}`