bash head top 20 lines code example
Example 1: only show first lines linux
head -10 bar.txt
Example 2: head first n lines
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