04-01 head and tail commands

01

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
                

02

The same applies to the tail command

tail
                
tail -3