Unix offers a few tools for examining the contents of files:
cat (concatenate) lists one or more files to the Terminal window.
less outputs files in page-size chunks, enabling you to view the contents of large files one screen at a time.
head displays the first lines of a file.
tail displays the last lines of a file.
wc displays a count of the number of lines, words, and characters in a file.
To learn more about these commands, check out their man pages. Type man cat, man less, man head, man tail, or man wc and press to display the command’s man page.
Type cat file ... (for example, cat example.rtf ...