head Table of Contents head head reference -<N> is an old style, concise. -n <N> is a new style, explicit and more functional. 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 https://www.computerhope.com/unix/uhead.htm