Linux journalctl Cheat Sheet/Follow service logs

Tail logs for a specific unit.

Section: Service and Unit Filters

Follow service logs

bash
bash
journalctl -u nginx -f
Explanation

Great for live troubleshooting.

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 Service and Unit Filters
Logs for one unit
Show logs for a service unit.
OpenIn sheetbashsame section
Logs for a user unit
Read logs from the user manager.
OpenIn sheetbashsame section
Logs for multiple units
Filter by more than one service.
OpenIn sheetbashsame section
Follow live logs
Tail journal output like tail -f.
OpenIn sheetbash2 tag match
Show journal logs
Print the journal from oldest to newest by default.
OpenIn sheetbash1 tag match
List boots
Show known boot sessions.
OpenIn sheetbash1 tag match