Head (Unix Command)

wikipedia on head

"Head is a program on Unix and Unix-like systems used to display the first few lines of a text file or piped data."



head [options] <file_name>

Most commonly

head -NumLinesToDisplay <file_name>


Head is useful for showing the top n lines of a file. Combining it with tail enables us to show any n lines of a file.