journalctl
Query the systemd journal.
$ journalctl
Examples
# View logs for SSH journalctl -u sshd.service # Follow new entries journalctl -f # Show last 50 lines journalctl -n 50 # Kernel messages only journalctl -k # Since a specific date journalctl --since "2024-01-01" --until "2024-01-07" # Error level and above journalctl -p err
Sponsors