tldr/pages/linux/journalctl.md

28 lines
458 B
Markdown
Raw Normal View History

2014-02-25 02:13:55 +00:00
# journalctl
> Query the systemd journal.
2014-02-25 02:13:55 +00:00
- Show all messages from this boot:
2014-02-25 02:13:55 +00:00
`journalctl -b`
- Show all messages from last boot:
2014-02-25 02:13:55 +00:00
`journalctl -b -1`
- Follow new messages (like `tail -f` for traditional syslog):
2014-02-25 02:13:55 +00:00
`journalctl -f`
- Show all messages by a specific unit:
2014-02-25 02:13:55 +00:00
`journalctl -u {{unit}}`
- Show all messages by a specific process:
2014-02-25 02:13:55 +00:00
`journalctl _PID={{pid}}`
- Show all messages by a specific executable:
2014-02-25 02:13:55 +00:00
`journalctl {{/path/to/executable}}`