Look inside files
Lesson 9 of 20 · Term.Micro
cat, head, tail and less: see all of a file or just one end.
cat file prints the whole file. -n numbers the lines. With several files, it prints them one after the other (cat comes from concatenate).
See the start or the end with head and tail
Check yourself
How do you see the last 5 lines of app.log?
Do it in the browser: a real the Linux terminal tool, a short mission and instant feedback. No install.
Start this lesson — free