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.