Sunday, April 13, 2025

Check previous boot logs in Linux

==

You can check how many previous boots are recorded using:

journalctl --list-boots

==

journalctl -b     → Shows logs from the current boot

journalctl -b -1  → Shows logs from the previous boot (last boot before the reboot)

journalctl -b  -2 → Shows logs from the boot before the last one, and so on

 ==

To check kernel issues in last boot:

 journalctl -b -k -1

 ==