journalctl --boot
prints log lines since boot and journalctl --follow
prints the last 10 lines of the log and then follows it. But journalctl --boot --follow
doesn't work like I expect it to. Rather than printing all the journal lines since boot and then following the journal it just ignores --boot
flag. Swapping the flags around makes no difference. How do I print all the log lines since boot and then follow the log?
Version info:
$ journalctl --version
systemd 239
+PAM +AUDIT -SELINUX +IMA +APPARMOR +SMACK -SYSVINIT +UTMP -LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid
Best Answer
Adding
--lines=all
does the trick - rather than overriding--boot
they work together to follow lines since boot.