mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 16:26:04 +02:00
commit
87cde06279
1 changed files with 27 additions and 0 deletions
27
linux/journalctl.md
Normal file
27
linux/journalctl.md
Normal 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}}`
|
Loading…
Add table
Reference in a new issue