sudo journalctl -u myapp --since '1 hour ago'

Category: Self-Hosting

sudo journalctl -u myapp --since '1 hour ago'

View a service's logs from the past hour

Shows logs from the past hour for a specific service. journalctl supports human-readable time ranges like '2 hours ago', 'yesterday', or specific timestamps.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.