head file.txt

Category: File Viewing & Editing

head file.txt

Print the first 10 lines of a file

Prints the first 10 lines of a file — useful for quickly peeking at the beginning of a file.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.