Linux Commands / IT Support Guides
Investigate the previous Linux boot with journalctl
Use the systemd journal to check warnings from the previous Linux boot.
Environment and inputs: Linux · Bash-compatible shell; package and service names vary by distribution
Understand the problem
Start with journalctl --list-boots. Look for rows labelled 0 for the current boot and -1 for the previous boot.
Run the command
If -1 is listed, run the second command. It selects the previous boot and shows warnings plus more severe messages.
journalctl --list-boots
journalctl -b -1 -p warning --no-pager
Read the output
Check the time of each entry and compare it with the reported restart. The last saved warning is a clue. A sudden loss of power may leave little evidence in the journal.
Choose the next step
If the warning filter gives too little context, run journalctl -b -1 --no-pager without the priority filter. If the previous boot is missing, check journal access and whether logs survive reboots.
Before making changes
Record the boot ID and the relevant timestamps before changing logging settings or restarting the machine again.