journalctl¶
the new /var/log/syslog
- see also systemd
specify unit / service¶
use the -u flag to work with a specific service, for example journalctl -u systemd-resolved you can also add multiple units using -u in one go
read journalctl logs¶
the following flags can usually be combined, so -f -u <service> works as well.
tail / follow logs¶
follow all new logs (tail -f):
read last n lines¶
display last 100 lines and follow new logs: