catstep 1 of 7
The whole thing
You’ve met cat: it prints a whole file. Give it more than one file and it prints them one after another, which is the “concatenate” it’s named after.
$ cat notes.txt Read files with cat. The start with head. The end with tail.
cat is perfect for short files. For a file with thousands of lines, it floods the screen, and that’s where the next three commands come in.
Your turn, in the terminal
- Read notes.txt