From b8a9fb3fbfa38df8124421364ad67d8d7c89c504 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 28 Feb 2024 18:45:21 +0100 Subject: [PATCH] more journalctl checks --- system/systemd/journal.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/system/systemd/journal.md b/system/systemd/journal.md index 490e0de..66cfbff 100644 --- a/system/systemd/journal.md +++ b/system/systemd/journal.md @@ -2,6 +2,20 @@ title: "journal" tags: [ "Documentation", "systemd" ] --- + +See a running log of all system messages: + + +```bash +journalctl -f +``` + +Or just one unit (`sshd`): + +```bash +journalctl -f -u sshd +``` + Find errors since November ```bash @@ -14,3 +28,11 @@ Limit size to 2G. journalctl --vacuum-size=2G ``` +Log the fact that you've installed your own `dnsmasq` on your system to `journalctl`, so that you can notice why your system's broken: + + +```bash +logger "Installed new dnsmasq" +sudo journalctl -f +``` +