So let's talk about tail and head.
Now what is till till on the text file showing you the last couple of lines?
By default it's the last 10 lines.
If you want to see more, use till minus number. So till minus three is only showing the last three lines.
You can also do the opposite and that would be using head.
Head is showing the first couple of lines and here is the result.
Now you can also combine them if you want to see the third line, for instance head
minus 3 etc wd pipe tail minus 1 and that allows you to see only line 3.
This is by the way, one of these examples of what we call the UNIX philosophy.
And the UNIX philosophy is about many highly specialized commands that
can be combined using pipes to do really powerful things.
Now one more thing that I need to show you and that is still F on var log messages.
The F is for follow.
And the result is that whenever something is happening, well, you
can see it happening right now it is updated automatically.
That is very convenient if you are troubleshooting something and you are analyzing and trying to understand what is going
on and you see the relevant message happening immediately. We ignore these messages here because for what we are doing
right now, they really don't matter. So let me use Control C to get out of til minus F. This
is one example where Q doesn't work to get out, but Control C is the option that you need.