head -number files
Head is used to display the first ten lines of a file. To display less or more lines use the -number option. For example,
$ head -1 myfile
will display the first line of the file only, and
$ head -30 logfile |more
displays the first 30 lines of the file logfile.