Use the head command to display the n lines of a file. If you don't use the -n option the first 10 lines of text are displayed.

Command Format

head [-n] filename

n=number of lines

For example, to display the first 15 lines of the books.txt file the command would be:

head -15 books.txt