sudo journalctl -u myapp -n 100 --no-pager

Category: Self-Hosting

sudo journalctl -u myapp -n 100 --no-pager

Show the last 100 log lines from a specific systemd service

Prints the last 100 log lines from a service without pausing. Pipe-friendly — great for scripts and remote log review.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.