journalctl [options]Arguments explained
- -u filters by unit.
- -f follows new entries.
- -b shows current boot.
- -p filters by priority.
- --since filters by time.
Common examples
journalctl -u nginx --since "1 hour ago"Shows nginx logs from the last hour.
journalctl -b -fStreams new journal entries for this boot.
| Field | Details |
|---|---|
| Command | journalctl |
| Category | Logs and Diagnostics |
| Primary use | Reads the systemd journal. |
| Syntax | journalctl [options] |