Is a program on Unix and Unix-like systems used to display the beginning of a text file or piped data.By default, this command will print the first 10 lines.The command syntax is:
-n flag specifies how many lines you want to display.
|head -n number||The number must be a decimal integer whose sign affects the location in the file , measured in lines.|
|head -c number||The number must be a decimal integer whose sign affects the location in the file , measured in bytes .|
This command has the ability to work with multiple files
If more than one input file is provided, the command will return the first ten lines from each file, precede each set of lines by the name of the file and separate each set of lines by one vertical space. The following is an example of using head with two input files: