Skip to main content
Kill -9 Club
Sign in

head

TextPackage: coreutils

The first lines of a file or a stream. head -1 on a command's output keeps its first line, which is often all a script needs.

What its options do in the lessons

From the same glossary the lessons render under their commands, so the two cannot disagree.

head -n
How many lines to print from the start.

Lessons that teach it