From 828c05919f74c84c549959a4fe9831b5eae44320 Mon Sep 17 00:00:00 2001 From: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Date: Sat, 18 Jun 2022 21:55:44 +0100 Subject: [PATCH] journalctl: add --vacuum-time example (#8135) --- pages/linux/journalctl.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/linux/journalctl.md b/pages/linux/journalctl.md index 8ca6b32aab..1666029611 100644 --- a/pages/linux/journalctl.md +++ b/pages/linux/journalctl.md @@ -3,17 +3,17 @@ > Query the systemd journal. > More information: . -- 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):