01 / 08
You do not always want all of it
Last lesson you saw the weak spot: cat puts out everything.
But think about it — when you look at a file, you rarely want to read all of it.
- Want to know what shape the data is in? The first few lines will do
- Want to know what just happened? The last few lines will do
head and tail exist for those two.