head

Table of Contents

head reference

head foo.txt          # first 10 lines by default
head -15 foo.txt      # first 15 lines
head -n -15 foo.txt   # all lines *except* last 15 lines
head foo.txt foo2.txt # firts 10 lines for both files
head -c 20 foo.txt    # first 20 bytes