• if you want to get first 6 lines
head -n 6
  • if you want to get first lines except last 6 lines
head -n -6
  • tail command also works the same way