mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 14:46:00 +02:00
journalctl: add options to filter by time
This commit is contained in:
parent
d155a6dcf5
commit
095c393ed3
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,14 @@
|
|||
|
||||
`journalctl -u {{unit}}`
|
||||
|
||||
- Show messages by a specific unit in last 15m:
|
||||
|
||||
`journalctl -u {{unit}} --since {{-15m}}`
|
||||
|
||||
- Filter messages within a time range (either timestamp or placeholders like "yesterday"):
|
||||
|
||||
`journalctl -u {{unit}} --since {{now|today|yesterday|tomorrow}} --until {{YYYY-MM-DD HH:MM:SS}}`
|
||||
|
||||
- Show all messages by a specific process:
|
||||
|
||||
`journalctl _PID={{pid}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue