1 00:00:00,390 --> 00:00:06,660 Right now, it is time to talk about direction and the things now I'm assuming that you already watch 2 00:00:06,660 --> 00:00:09,780 the theory brought about by description some commands. 3 00:00:10,240 --> 00:00:12,920 OK, so we will start with the redirection first. 4 00:00:13,380 --> 00:00:20,290 So as you can see, if I type it as far as Dash and can see that I have this specific output. 5 00:00:20,310 --> 00:00:23,860 OK, now what if I want this output to be inside a text file? 6 00:00:24,150 --> 00:00:27,300 So actually I will type as dash, which is the command. 7 00:00:27,540 --> 00:00:30,320 I will use that greater than here. 8 00:00:30,330 --> 00:00:31,410 The redirection. 9 00:00:31,650 --> 00:00:39,720 OK, sorry, this and then I will provide to a specific file and I will name it by the text. 10 00:00:41,280 --> 00:00:47,070 Now, if I type in, as you can see, that by the text is here, let's get it behind us. 11 00:00:48,070 --> 00:00:53,260 You can see inside it we have a taste of the output of these, as you can see. 12 00:00:53,690 --> 00:00:54,230 All right. 13 00:00:54,370 --> 00:00:55,240 So far, so good. 14 00:00:55,580 --> 00:01:02,230 Now, if I want to sort this fight, I will use the command called sort certifying the 26th. 15 00:01:02,460 --> 00:01:04,780 OK, so as you can see now, it has been sorted. 16 00:01:05,990 --> 00:01:09,060 OK, now, with specific criteria, whatever. 17 00:01:09,080 --> 00:01:14,350 OK, now I'm not talking about the criteria of sorting or the mechanism, I'm talking about the command. 18 00:01:14,720 --> 00:01:21,770 And now if I want to provide an input for this, by the way, that greater than here, which means the 19 00:01:21,770 --> 00:01:23,300 output of this file. 20 00:01:24,330 --> 00:01:26,440 Put it inside this fight. 21 00:01:26,460 --> 00:01:30,610 OK, so the output of this will be redirected to this fight. 22 00:01:30,630 --> 00:01:33,540 OK, this is the greater than less then. 23 00:01:34,650 --> 00:01:42,160 This means that the input for this command, I need it to take be to be taken from this one. 24 00:01:42,510 --> 00:01:47,490 So if I type sort but this time I didn't provide the final the text. 25 00:01:48,480 --> 00:01:51,920 I provide that list that and would apply the 26th. 26 00:01:52,170 --> 00:02:00,240 OK, this means that I, for the input of this command, should command take the input from five to 27 00:02:00,240 --> 00:02:00,620 six. 28 00:02:00,630 --> 00:02:06,290 If I type here, you can see that it give me the same value or the same result as you can see. 29 00:02:06,600 --> 00:02:08,490 So everything is working as expected. 30 00:02:09,120 --> 00:02:13,940 Now what if I want to put our event value to this five to six? 31 00:02:14,190 --> 00:02:17,760 So for example, I thought a last dash for the time, for example. 32 00:02:18,300 --> 00:02:18,830 All right. 33 00:02:19,140 --> 00:02:25,890 So I will list all the temp directory content and I want it not to be overwritten over the five the 34 00:02:25,890 --> 00:02:26,160 text. 35 00:02:26,160 --> 00:02:29,610 I wouldn't want it to be appended on the file like this. 36 00:02:30,330 --> 00:02:35,610 OK, now if I clear the screen first and get the text, you can see that now. 37 00:02:35,610 --> 00:02:36,450 Yeah, we have. 38 00:02:36,780 --> 00:02:38,690 And now this is the part for the first one. 39 00:02:39,360 --> 00:02:43,170 This is the second part of the second one, which is the temp directory. 40 00:02:44,150 --> 00:02:45,410 All right, so far, so good. 41 00:02:46,100 --> 00:02:49,990 Now, what if I want to put a specific command now? 42 00:02:50,870 --> 00:02:56,180 For example, I type A let's see here you can see that we don't have to text you. 43 00:02:56,180 --> 00:02:56,560 Right? 44 00:02:56,900 --> 00:02:59,890 So if I type LSP, the text, OK. 45 00:03:00,590 --> 00:03:01,360 Sorry about this. 46 00:03:01,370 --> 00:03:04,040 Yet, as you can see, no such photo directory. 47 00:03:04,280 --> 00:03:07,040 Now, what if I don't want for this to be shown? 48 00:03:07,220 --> 00:03:08,370 How should they do that? 49 00:03:08,390 --> 00:03:15,830 I will do this, which is still a text, and then I will choose this thing, which is to. 50 00:03:17,170 --> 00:03:18,640 On the. 51 00:03:19,870 --> 00:03:21,040 So, yes, no. 52 00:03:22,800 --> 00:03:31,050 And you can see this time after I lost this fight, the same message, no such file or destiny is not 53 00:03:31,140 --> 00:03:32,320 written or is not printed. 54 00:03:32,340 --> 00:03:32,700 Why? 55 00:03:32,700 --> 00:03:38,520 Because the tool, which means the standard error will be now redirected to. 56 00:03:39,090 --> 00:03:46,130 And by the way, this is a device for the old values, which means it's like the recycle bin in windows, 57 00:03:46,140 --> 00:03:46,530 by the way. 58 00:03:46,730 --> 00:03:52,950 OK, somehow you say somehow it is that like the recycling bin in windows, some policy. 59 00:03:53,400 --> 00:03:54,870 OK, all right. 60 00:03:55,110 --> 00:03:56,490 Now enough with this. 61 00:03:56,490 --> 00:03:58,770 You have an idea now what is redemption? 62 00:03:58,770 --> 00:03:59,460 How to use it. 63 00:03:59,940 --> 00:04:01,350 And I will see you in the next lecture.