Which option of the head command will display only the first five lines of a file?

Which option of the head command will display only the first five lines of a file?Category: Linux EssentialsAuthor "LinuxQuestions"Which option of the head command will display only the first five lines of a file?
Linux Questions Staff asked 1 year ago

Which option of the head command will display only the first five lines of a file?

  • -l 5
  • No option needed; head displays only five lines by default.
  • -n
  • -n 5 

About the author