Command
headExplanation
head is used to output the first part of files. It outputs the first part of the files.
Examples
Show first 10 lines
head file.txtShow first 5 lines
head -n 5 file.txtheadhead is used to output the first part of files. It outputs the first part of the files.
Show first 10 lines
head file.txtShow first 5 lines
head -n 5 file.txt