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