1
0
Fork 0
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:
Jaseem Abid 2019-07-31 12:45:03 +01:00 committed by Agniva De Sarker
parent d155a6dcf5
commit 095c393ed3

View file

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