head and tail commands
By default, The head command shows the first 10 lines,
head file.txt
It will show the lines whether there is text or not
Adding the flag - and a number will display those number of lines
head -3
The same applies to the tail command
tail
tail -3