how to see first 100 lines of a file in linux code example
Example 1: only show first lines linux
head -10 bar.txt
Example 2: print first lines of file linux
With the flag -n | N, the head command prints out the first N lines of file(s)
head -n 7 file.txt #Prints first 7 lines of file.txt