Print 5 lines after each match.
Section: Context Around Matches
Show lines after a match
bash
bash
grep -A 5 ERROR app.logExplanation
After-context often shows stack traces or follow-up log lines.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Context Around Matches