cat filename | tail -n 100 Display the last 100 lines of the file
cat filename | head -n 100 Display the first 100 lines of the file
cat filename | tail -n +100 Display starting from line 100, show all lines after line 100
Display lines 100 to 500
cat filename | head -n 500 | tail -n +100