View systemd service logs
Tail the last 100 lines and follow live logs of a systemd service.
Streams the journal logs for a specific systemd unit. -u filters by unit, -f follows in real-time like tail -f. Use --since "1 hour ago" to limit output.
When you need this: When debugging a failing service or monitoring its real-time output.
Variables
The systemd unit name, e.g. nginx, php8.3-fpm, myapp.
Command
2 views
0 copies
Related in this category
Log in to save
Free account — save snippets into your own collections.