Problem Statement
Which command displays logs from the systemd journal?
Explanation
journalctl queries and displays logs collected by systemd.
Options like -u specify a unit, and -f follows logs in real time similar to tail.
Code Solution
SolutionRead Only
journalctl -u nginx -f
Practice Sets
This question appears in the following practice sets: