Viewing Text Files

head – View the start of a text file

Show the first 20 lines:


head -20 /home/pi/mytextfile.txt
tail – View the end of a text tile

Show the last 20 lines


tail -20 /home/pi/mytextfile.txt