Linux command part-16
head
The head command, as the name implies, print the top N number of data of the given input. By default, it prints the first 10 lines of the specified files. If more than one file name is provided then data from each file is preceded by its file name.
TO DISPLAY THE FIRST 10 LINES DEFAULT OF HEAD COMMAND
first command- head /proc/cpuinfo
To show the first 5 lines
command β head -n 5 /proc/cpuinfo
Thank youβ¦