Preview the top of a file.
Section: Line Selection and Context
Show first 20 lines
bash
bash
head -n 20 server.logExplanation
Useful for verifying file structure before applying heavier text processing.
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 Line Selection and Context