The head
command is used to display the first line of any text file. By default, the first ten lines will be displayed, but you can change this number as you wish.
For example, if you want the first five lines to be displayed:
head -n 5 filename.ext