head - read from top of file to standard output#

  • output the first 10 lines of a file

head file.txt
  • output the last X lines of a file

head -n X file.txt