Linux Command Cheat Sheet/Show logs from current boot

Query logs for the active boot session.

Section: Services systemd and Journal

Show logs from current boot

bash
bash
journalctl -b
Explanation

Use `-b -1` to inspect the previous boot.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Services systemd and Journal
Page through a file
Open a file in a scrollable pager.
OpenIn sheetbash1 tag match
Show last lines
Display the end of a file.
OpenIn sheetbash1 tag match
Follow a growing file
Stream appended lines as they are written.
OpenIn sheetbash1 tag match
Print working directory
Show the current absolute path.
Create file or update timestamp
Create an empty file if it does not exist.
Print file contents
Concatenate and print files to standard output.