journalctl
Reference manpage: man journalctl
systemd's integrated logging system, collects logs from the kernel, initrd, services, and applications. The journalctl command is used to query and display these logs.
View all logs
journalctl
This will show all logs, paginated logs since last boot
journalctl -b
View logs for a specific service
journalctl -u <service_name>
Follow new logs in real-time
journalctl -f
view logs for a specific time
journalctl --since "2023-01-01 10:00:00" --until "2023-01-01 10:30:00" journalctl --since "yesterday"
View logs for a specific user
journalctl --user -u <user_service_name>