Head Tail Head command is used to display first few lines (default is 10) of the file. Tail is used to display last few lines(default is 10) of the file . #Display first 10 lines of the file - application.log head application.log #Display first 50 lines of the file - application.log head -50 application.log #Display last 10 lines of the file - application.log tail application.log #Display last 50 lines of the file - application.log tail -50 application.log