wish I knew how to use the journal, seems like there isn’t any good way to just search the previous session’s logs without a mountain of fuss or having to guess file names
What if I’m on another minimal distro, like Artix, that doesn’t use systemd? Journald is a systemd thing, and I’m not going to install systemd on top of a perfectly good init system.
wish I knew how to use the journal, seems like there isn’t any good way to just search the previous session’s logs without a mountain of fuss or having to guess file names
Check that you actually have persistent storage enabled. (See
man journald.confand search forStorage)Read up on the numerous parameters to journalctl. (
man journalctl)journalctl --boot -2will show logs from previous boot.journalctl --since "-2 weeks" --unit=sshdlast two weeks worth of sshd logs.I think there’s a minor mistake in your command.
jounalctl --boot -1is the previous boot. The counting starts at--boot 0for the current one.You’re right ofcourse.
What if I’m on another minimal distro, like Artix, that doesn’t use systemd? Journald is a systemd thing, and I’m not going to install systemd on top of a perfectly good init system.