1 00:00:06,679 --> 00:00:08,480 So let's talk about tail and head. 2 00:00:09,099 --> 00:00:13,419 Now what is till till on the text file showing you the last couple of lines? 3 00:00:13,960 --> 00:00:15,919 By default it's the last 10 lines. 4 00:00:16,550 --> 00:00:22,789 If you want to see more, use till minus number. So till minus three is only showing the last three lines. 5 00:00:23,489 --> 00:00:27,010 You can also do the opposite and that would be using head. 6 00:00:27,949 --> 00:00:32,609 Head is showing the first couple of lines and here is the result. 7 00:00:33,390 --> 00:00:40,375 Now you can also combine them if you want to see the third line, for instance head 8 00:00:40,375 --> 00:00:47,359 minus 3 etc wd pipe tail minus 1 and that allows you to see only line 3. 9 00:00:48,359 --> 00:00:52,299 This is by the way, one of these examples of what we call the UNIX philosophy. 10 00:00:52,820 --> 00:00:57,075 And the UNIX philosophy is about many highly specialized commands that 11 00:00:57,075 --> 00:01:01,329 can be combined using pipes to do really powerful things. 12 00:01:02,090 --> 00:01:08,049 Now one more thing that I need to show you and that is still F on var log messages. 13 00:01:09,189 --> 00:01:10,650 The F is for follow. 14 00:01:11,209 --> 00:01:15,379 And the result is that whenever something is happening, well, you 15 00:01:15,379 --> 00:01:19,549 can see it happening right now it is updated automatically. 16 00:01:20,430 --> 00:01:26,542 That is very convenient if you are troubleshooting something and you are analyzing and trying to understand what is going 17 00:01:26,542 --> 00:01:32,655 on and you see the relevant message happening immediately. We ignore these messages here because for what we are doing 18 00:01:32,655 --> 00:01:38,767 right now, they really don't matter. So let me use Control C to get out of til minus F. This 19 00:01:38,767 --> 00:01:44,879 is one example where Q doesn't work to get out, but Control C is the option that you need.