1 00:00:00,430 --> 00:00:06,990 Now it's time to talk about their linked list or the listing or the shortcuts inside, then OK, now 2 00:00:07,000 --> 00:00:08,320 luxury for that. 3 00:00:08,500 --> 00:00:11,720 We are using the end comment, which is very common. 4 00:00:11,780 --> 00:00:16,420 So, man, and to see so you can see that mic links between flights. 5 00:00:16,450 --> 00:00:19,120 OK, so here are the synopsis. 6 00:00:19,120 --> 00:00:24,400 You can see that the first form, the second, third, fourth, you can see that we have a lot of options, 7 00:00:24,580 --> 00:00:27,450 a lot of arguments, the other whatever. 8 00:00:27,490 --> 00:00:27,910 All right. 9 00:00:28,760 --> 00:00:32,180 Now, as simple as that, what is the most important? 10 00:00:32,650 --> 00:00:37,840 For example, let's make a directory, so let's name it and that. 11 00:00:38,020 --> 00:00:38,890 OK, whatever. 12 00:00:38,920 --> 00:00:44,570 OK, so now I want this Ellendale to be linked. 13 00:00:44,620 --> 00:00:46,130 So let's make a deal to it. 14 00:00:46,180 --> 00:00:53,740 OK, um, and actually to make this delta without go to the directory, we already learned that. 15 00:00:53,740 --> 00:00:57,700 So dial one and then we create the two and it is that one. 16 00:00:57,700 --> 00:01:02,030 If that existed we can watch the dashboard or that option. 17 00:01:02,500 --> 00:01:05,230 So to make directory of the ballot does not exist. 18 00:01:05,230 --> 00:01:07,420 But the ballot existed by the way. 19 00:01:08,080 --> 00:01:11,260 And as or else Deshotel. 20 00:01:12,550 --> 00:01:17,860 Sometimes some of the Linux distribution it have this alias, which is the L, L and L, which means 21 00:01:17,860 --> 00:01:24,580 the dash, OK, by the way, but it is alias now what is and isn't what. 22 00:01:24,580 --> 00:01:26,280 He will talk about it later. 23 00:01:26,590 --> 00:01:26,950 All right. 24 00:01:27,280 --> 00:01:31,600 Now let's start using the N option or so n. 25 00:01:32,720 --> 00:01:34,160 The source, the destination. 26 00:01:34,460 --> 00:01:40,610 OK, but by the way, it's better to use absolute death in my case so you can see that if I type out 27 00:01:40,610 --> 00:01:49,170 or be considered, I have the home option to then and home open-top and die. 28 00:01:49,970 --> 00:01:55,130 And this means that I want this directory to be linked to another directory. 29 00:01:55,160 --> 00:02:04,800 OK, so I want this Lindale and I would go home, Open-top and I will put Lyndy up too. 30 00:02:05,090 --> 00:02:05,580 OK. 31 00:02:06,500 --> 00:02:06,970 All right. 32 00:02:07,160 --> 00:02:13,310 So you can see that now hard link are not allowed for directress because we are linking between directories. 33 00:02:13,550 --> 00:02:17,090 We cannot do a Harnik, so we will use in this option. 34 00:02:18,330 --> 00:02:20,640 The opening or this impregnates. 35 00:02:21,580 --> 00:02:27,130 In either case, actually, in windows, they are called shortcuts, OK, and they are very simple, 36 00:02:27,130 --> 00:02:34,360 by the way, but just by putting the dash as option, which means symmetric or or soft link. 37 00:02:34,390 --> 00:02:35,500 OK, so by this. 38 00:02:35,860 --> 00:02:37,690 Yeah, everything is as expected. 39 00:02:37,850 --> 00:02:43,720 You can see that that line two is now referring that the one we created here, as you can see, which 40 00:02:43,720 --> 00:02:51,670 is the destination, it's referring or linking or linked to Lindahl, which is this one. 41 00:02:51,700 --> 00:02:53,960 OK, OK, so far so good. 42 00:02:54,220 --> 00:03:02,440 So actually if I typed that and now you can see that here and dirtball is now as you can see, there 43 00:03:02,440 --> 00:03:08,870 are all is now listed or is now linked to the home of to indict or Lyndy. 44 00:03:08,950 --> 00:03:18,550 OK, so if I go to Lyndy two it will go me to the window to actually if I create a directory here, 45 00:03:18,560 --> 00:03:26,050 its name it Diyab Diet for example, or whatever, OK, and I return back, it's clear the screen first 46 00:03:26,560 --> 00:03:28,630 then I would go to Linda this time. 47 00:03:28,960 --> 00:03:34,530 OK, not nothing there to and I type I guess you can see there there is existed as well. 48 00:03:34,840 --> 00:03:36,970 So you can see that any modification. 49 00:03:37,150 --> 00:03:42,600 I create files, I create something, I eat something actually anything here. 50 00:03:42,610 --> 00:03:48,580 And so I think that too will be referred to in there too by the way, that too because we created as 51 00:03:49,120 --> 00:03:55,300 a soft links or Semitic links, actually they are a shortcut to the window, which means that this is 52 00:03:55,300 --> 00:03:57,390 just a pointer to that in that not a copy. 53 00:03:58,150 --> 00:04:01,040 And and the other hand, the hard link is something else. 54 00:04:01,090 --> 00:04:03,970 So if I go back. 55 00:04:05,300 --> 00:04:10,730 Here you can see that the entire two is now inside or the same thing as Linda. 56 00:04:10,790 --> 00:04:12,320 OK, now let's remove it. 57 00:04:12,530 --> 00:04:14,690 Undersheriff Linda. 58 00:04:15,900 --> 00:04:18,150 And let's do it then, Linda. 59 00:04:18,180 --> 00:04:20,960 But before I did it, actually, I want to show you something. 60 00:04:21,300 --> 00:04:29,050 So actually, if I go to Lyndy to like this, you can see that I am inside the Lindale, too, and actually 61 00:04:29,070 --> 00:04:34,650 went in there, too, is the same as the night we saw that, because after we created this directory, 62 00:04:34,920 --> 00:04:36,800 the same directory is created there. 63 00:04:36,870 --> 00:04:41,000 Actually, it is the same data, not something new or something covid, OK. 64 00:04:41,460 --> 00:04:45,990 Now what if I want to go clear the skin first? 65 00:04:46,650 --> 00:04:50,600 So what if I want to go to the actual nothink? 66 00:04:50,610 --> 00:04:53,630 By the way, you can see that now it is a bright blue here. 67 00:04:53,880 --> 00:04:57,810 As you can see, the color is different than the color, which means this is a list. 68 00:04:58,200 --> 00:05:02,110 And if I go to it, we saw that we are inside that entire tool. 69 00:05:02,220 --> 00:05:05,580 But what if I want to go to the actual directory? 70 00:05:05,610 --> 00:05:10,470 Not so much typing unless I mean, I don't need to go to India, too. 71 00:05:10,470 --> 00:05:14,280 I need to go to the actual directory, which is the home. 72 00:05:14,280 --> 00:05:15,760 I went to that Linda. 73 00:05:16,080 --> 00:05:16,800 How to do that? 74 00:05:16,800 --> 00:05:26,310 We would use the CD dash option and then I would go to the lender to actually option or per capita. 75 00:05:26,370 --> 00:05:27,210 Sorry about this. 76 00:05:27,480 --> 00:05:33,150 So you can see that option with a capital P and go to India too. 77 00:05:33,150 --> 00:05:39,630 It will go to India, which is the physical actual directory, not the linked list or the copy from 78 00:05:39,630 --> 00:05:45,790 it, because you know that this is a linked list, asymmetric list that repairing or pointing to the 79 00:05:45,790 --> 00:05:51,740 ALINDA, we will go directly to the actual original directory, which is link that. 80 00:05:51,750 --> 00:05:55,890 And as you can see, we are inside the lyndy right now. 81 00:05:56,250 --> 00:05:59,810 We learned about that, symmetric links. 82 00:05:59,940 --> 00:06:03,130 Now this learn about that hardening. 83 00:06:03,330 --> 00:06:09,570 So actually, the hotlink is the same format, but without using the option, as you can see. 84 00:06:09,720 --> 00:06:14,430 So symmetric dachas Healthlink would do it without that. 85 00:06:14,980 --> 00:06:16,770 OK, so source destination. 86 00:06:16,800 --> 00:06:18,810 The source is promoting the job. 87 00:06:19,470 --> 00:06:26,340 And again, the directory does not accept hardening just assorting, but for regular files. 88 00:06:26,550 --> 00:06:28,030 Yeah, except that it's OK. 89 00:06:28,200 --> 00:06:35,010 So here I want this remoting job, I want to create a link from it so it will be referred to this. 90 00:06:35,340 --> 00:06:37,540 But actually it's better to have a text file. 91 00:06:37,930 --> 00:06:38,340 Yeah. 92 00:06:38,580 --> 00:06:43,230 So I will use the touch command or let's use this command. 93 00:06:43,230 --> 00:06:44,610 Actually it's good to practice that. 94 00:06:44,610 --> 00:06:46,470 So AECO Hello. 95 00:06:47,170 --> 00:06:51,610 And I would use that if they don't worry about this, we will talk about this in detail. 96 00:06:51,780 --> 00:06:53,940 But for me for now actually. 97 00:06:54,300 --> 00:06:56,850 So t the text. 98 00:06:56,880 --> 00:07:03,300 OK, all right, let's clear the screen and let's see now we have that t the text if I can get it, 99 00:07:03,480 --> 00:07:06,270 or concatenation using the concatenation. 100 00:07:06,600 --> 00:07:06,860 Yeah. 101 00:07:06,900 --> 00:07:14,560 We have the hello inside it now and then he the text and it's better we saw that it is better to book 102 00:07:14,580 --> 00:07:15,450 the absolute best. 103 00:07:15,660 --> 00:07:18,340 OK, but by the way it's something. 104 00:07:18,360 --> 00:07:18,600 Yeah. 105 00:07:18,600 --> 00:07:20,850 It work even if you didn't provide the others. 106 00:07:20,850 --> 00:07:23,910 But it worked but sometimes it would give you infinite loop. 107 00:07:23,910 --> 00:07:29,430 So and actually this is a bad practice to what a relative bef inside the linked list. 108 00:07:29,790 --> 00:07:32,850 Sometimes it worked but I didn't prepare it from my best. 109 00:07:33,020 --> 00:07:38,340 O'Banion, I didn't prefer that the relative bad for the linked list. 110 00:07:38,340 --> 00:07:40,830 OK, either either Healthlink or something. 111 00:07:41,190 --> 00:07:44,910 So yeah the text now this is the source, the destination. 112 00:07:45,060 --> 00:07:49,020 We will be the same home I want to see to the text. 113 00:07:49,020 --> 00:07:50,570 OK, which is the list. 114 00:07:51,060 --> 00:07:51,720 All right. 115 00:07:51,720 --> 00:07:55,590 Unless now you can see that we have T and we have to two. 116 00:07:55,800 --> 00:08:04,290 OK, so if I remove the original part either as I said and it's tried as a link list so think or as 117 00:08:04,290 --> 00:08:11,550 Harnik, so let's remove Musharraf that Lindahl which is the one we created and this is referring or 118 00:08:11,580 --> 00:08:15,220 pointing to it and as nationally or politically risky. 119 00:08:15,240 --> 00:08:15,930 Sorry about this. 120 00:08:15,930 --> 00:08:19,410 And as you can see, that Lindahl too is now. 121 00:08:19,530 --> 00:08:22,880 Right, which means that this fight can couldn't be found. 122 00:08:22,890 --> 00:08:30,180 So if I type and they are two or three, let's go to an end to the other two. 123 00:08:30,660 --> 00:08:37,170 You can see that no such file or directory, OK, because this fight is not exist anymore, but it is 124 00:08:37,170 --> 00:08:37,740 existed. 125 00:08:37,740 --> 00:08:45,200 You can see that it is here, but we cannot go to it because lyndy are two that was wanting to Linda 126 00:08:45,210 --> 00:08:46,800 is not existed anymore. 127 00:08:47,010 --> 00:08:47,400 Alright. 128 00:08:47,580 --> 00:08:49,310 But on the other hand the hard link. 129 00:08:49,590 --> 00:08:50,750 So let's have a look here. 130 00:08:50,970 --> 00:08:53,360 If I remove the t the text. 131 00:08:53,370 --> 00:09:00,900 OK, not that you two and if I type unless you can see that we have it here and as well we still have 132 00:09:00,900 --> 00:09:01,560 it Nasrat. 133 00:09:01,560 --> 00:09:05,580 So if I can t to the text you can see that. 134 00:09:05,580 --> 00:09:06,600 Yeah it is. 135 00:09:06,600 --> 00:09:07,480 Hello as well. 136 00:09:07,760 --> 00:09:13,050 Alright, so you can see that the list of things is something like the shortcut in windows. 137 00:09:13,050 --> 00:09:13,890 It is the shortcut. 138 00:09:14,520 --> 00:09:14,970 OK. 139 00:09:15,640 --> 00:09:23,980 If you are coming from winders, I mean, but here the hard link is no, it will create a copy, the 140 00:09:23,980 --> 00:09:26,690 same copy from the file. 141 00:09:26,800 --> 00:09:28,390 It is just like the copy. 142 00:09:28,810 --> 00:09:30,310 It will create a copy from it. 143 00:09:30,700 --> 00:09:33,280 And if it is, if the origin is deleted, it's OK. 144 00:09:33,730 --> 00:09:36,130 So you may ask, but what is the difference? 145 00:09:36,400 --> 00:09:37,030 What is hard? 146 00:09:37,360 --> 00:09:40,750 What what is the difference between copying the file or the hard link. 147 00:09:41,210 --> 00:09:43,070 OK, for the sort of thing we saw. 148 00:09:43,720 --> 00:09:47,260 Yeah, it is just like the shortcut and yeah it worked. 149 00:09:47,380 --> 00:09:52,180 If we removed the original it will be removed or it will be like this. 150 00:09:52,420 --> 00:09:59,770 But the hard thing actually no it is not like the copy because any modification on the original or any 151 00:09:59,770 --> 00:10:04,300 modification on T to it will be applied to the original. 152 00:10:04,330 --> 00:10:06,180 OK, let's see, let's see again. 153 00:10:06,460 --> 00:10:08,140 Let's clear the screen now. 154 00:10:08,170 --> 00:10:10,930 Let's remove the key tool. 155 00:10:11,500 --> 00:10:13,120 We just need this file actually. 156 00:10:13,540 --> 00:10:16,060 Let's create another this removed directory. 157 00:10:16,780 --> 00:10:17,830 Lindahl two. 158 00:10:18,070 --> 00:10:18,610 It's OK. 159 00:10:18,610 --> 00:10:20,200 We don't need them now. 160 00:10:21,440 --> 00:10:29,700 Let's clear this fight, OK, this time I will use the touch command, which is D1 or T the text, and 161 00:10:29,700 --> 00:10:33,700 decided I can put this command on this thing. 162 00:10:34,070 --> 00:10:36,470 This is key the text. 163 00:10:36,470 --> 00:10:39,680 OK, I will use redirection now. 164 00:10:39,680 --> 00:10:41,270 Please don't get confused again. 165 00:10:41,270 --> 00:10:43,000 I will talk about this later on. 166 00:10:43,010 --> 00:10:49,460 OK, so t don't text like this and if I catch it, let's see what's inside it. 167 00:10:49,880 --> 00:10:50,690 Yeah we have. 168 00:10:50,750 --> 00:10:52,310 This is the text. 169 00:10:52,460 --> 00:10:53,520 OK, so far so good. 170 00:10:53,780 --> 00:10:56,150 Let's clear the screen and now this is what it is. 171 00:10:56,330 --> 00:11:02,390 Now let's end and pull up until t the text. 172 00:11:02,990 --> 00:11:03,800 Sorry about this. 173 00:11:05,150 --> 00:11:11,390 I pressed enter by mistake now here home Ubuntu and T to the text. 174 00:11:11,390 --> 00:11:15,680 OK, so we are creating a hard link from this regular file text file. 175 00:11:16,310 --> 00:11:19,100 The source is the text and we saw what inside it. 176 00:11:19,430 --> 00:11:28,520 This is the text and here we have the T to the text and this recentre this and here we have T a. two. 177 00:11:28,640 --> 00:11:32,300 If I get the T tool we already saw what inside the text. 178 00:11:32,840 --> 00:11:34,310 This is a text. 179 00:11:34,490 --> 00:11:37,320 But here this is the text as well. 180 00:11:37,340 --> 00:11:38,540 OK, so far so good. 181 00:11:38,750 --> 00:11:39,160 All right. 182 00:11:39,170 --> 00:11:41,500 You may ask me, but this is the same as the copy. 183 00:11:41,510 --> 00:11:41,740 Yeah. 184 00:11:41,780 --> 00:11:48,080 OK, now if I edit the content of T to using I would use them for now. 185 00:11:48,230 --> 00:11:49,280 Don't worry about them. 186 00:11:49,280 --> 00:11:50,900 We will talk about it in detail. 187 00:11:51,140 --> 00:11:52,460 But for now, just follow me. 188 00:11:52,460 --> 00:11:52,910 All right. 189 00:11:53,370 --> 00:11:57,680 OK, so t to the text and inside it I would watch. 190 00:11:59,060 --> 00:11:59,870 Another line. 191 00:12:00,390 --> 00:12:08,360 OK, and let's say this, OK, all right, now let's get to the text, not here to the text and let's 192 00:12:08,360 --> 00:12:08,660 see. 193 00:12:08,820 --> 00:12:17,270 Yeah, you can see that we edited or we modified T to the text, but the modification has been applied 194 00:12:17,390 --> 00:12:23,120 to the T the text, which is another line, which means that T to A.. 195 00:12:23,390 --> 00:12:25,200 They are connected together. 196 00:12:25,370 --> 00:12:30,440 So any modification happens on T two or T they would be applied to each other. 197 00:12:30,470 --> 00:12:37,100 So again, now this time it's would on modify t the text, not T to the text. 198 00:12:37,400 --> 00:12:42,170 So t like this, let's modify third line. 199 00:12:42,640 --> 00:12:43,610 OK, whatever. 200 00:12:43,850 --> 00:12:44,330 That's it. 201 00:12:44,330 --> 00:12:44,810 And see. 202 00:12:44,960 --> 00:12:48,790 Now let's get to when we divide the text. 203 00:12:48,920 --> 00:12:51,620 Now it's time to, to see it all. 204 00:12:51,770 --> 00:12:52,310 Let's see. 205 00:12:53,380 --> 00:13:01,300 Yeah, they're nine, so you can see by practice that T to A. They are connected together, but the 206 00:13:01,300 --> 00:13:09,130 difference between shooting and hardening is that soft drink if you remove the original and we already 207 00:13:09,130 --> 00:13:13,770 saw that by doing this practice on the temptress, which is what we saw. 208 00:13:14,110 --> 00:13:15,330 But the hard link. 209 00:13:15,340 --> 00:13:23,890 No, if you delete the origin in the T two or the linked the hard linked fight, it will be still stand 210 00:13:23,900 --> 00:13:24,340 standstill. 211 00:13:24,640 --> 00:13:30,310 It will not be removed and it will be working as fine as it's called. 212 00:13:30,400 --> 00:13:31,290 Thanks for watching. 213 00:13:31,300 --> 00:13:32,430 I see you in the next little.