Linux/Bash
Journal Commands
systemd journal logs
4 commands
Commands
Follow service logs
$ journalctl -u nginx.service -f
Stream logs for a specific systemd service in real-time.
Time-based log query
$ journalctl --since '2 hours ago' --until '1 hour ago'
Display logs from a specific time range using natural language.
Show errors from current boot
$ journalctl -p err -b
Display all error-level messages since the last system boot.
Show journal disk usage
$ journalctl --disk-usage
Display total disk space used by systemd journal logs.