journalctl last 100 lines code example Example: journalctl last 100 lines journalctl --unit=my.service | tail -n 300