Limit output to recent entries.

Section: Basics

Show last N lines

bash
bash
journalctl -n 100
Explanation

Quickly inspect recent logs.

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 Basics
Follow live logs
Tail journal output like tail -f.
OpenIn sheetbashsame section
Show journal logs
Print the journal from oldest to newest by default.
OpenIn sheetbashsame section
Show newest first
Reverse output order.
OpenIn sheetbashsame section
Disable pager
Print directly to stdout.
OpenIn sheetbashsame section
Logs for one unit
Show logs for a service unit.
OpenIn sheetbash1 tag match
List boots
Show known boot sessions.
OpenIn sheetbash1 tag match