the command used tpo display first 20 lines of a file is 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