1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 04:15:23 +02:00

journalctl: add --vacuum-time example (#8135)

This commit is contained in:
CleanMachine1 2022-06-18 21:55:44 +01:00 committed by GitHub
parent 95871dc69a
commit 828c05919f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,17 +3,17 @@
> Query the systemd journal.
> More information: <https://manned.org/journalctl>.
- Show all messages from this [b]oot:
- Show all messages with priority level 3 (errors) from this [b]oot:
`journalctl -b`
`journalctl -b --priority={{3}}`
- Show all messages from last [b]oot:
`journalctl -b -1`
- Show all messages with priority level 3 (errors) from this [b]oot:
- Delete journal logs which are older than 2 days:
`journalctl -b --priority={{3}}`
`journalctl --vacuum-time={{2d}}`
- [f]ollow new messages (like `tail -f` for traditional syslog):