Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

Articles are written in English. The Thai translation button opens Google Translate; code and commands stay in their original form.

Linux Commands / IT Support Guides

Investigate the previous Linux boot with journalctl

Use the systemd journal to check warnings from the previous Linux boot.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

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.

Source & further reading

systemd manual — journalctl

Independently written summary reviewed on 2026-11-01. The example illustrates a possible application; it is not a client case study.

Share this article

Back to all articles