head (output the first part of files)

This command is the opposite of →tail. It displays the “head” of a file, that is, its first 10 lines. If you need more (or fewer) lines, call head like so:

head -50 file

This will output the first 50 lines of file. Using this syntax you can request any number of output lines.