1 00:00:01,140 --> 00:00:01,740 Hello, everyone. 2 00:00:02,430 --> 00:00:06,570 And this demo, I'm going to show you how to create a hard link and a soft link. 3 00:00:08,109 --> 00:00:10,930 The first thing I'm going to talk about is a hotlink. 4 00:00:12,230 --> 00:00:16,850 We can define a hard link as an exact replica of a fire. 5 00:00:17,960 --> 00:00:20,150 Different names for the exact same file. 6 00:00:21,190 --> 00:00:26,790 Hard links have the Sam I know it's a number and actual five contacts. 7 00:00:28,090 --> 00:00:32,110 If I remove the original file, then the link doesn't get affected. 8 00:00:32,470 --> 00:00:34,710 And it shows the contents of the file. 9 00:00:36,090 --> 00:00:40,510 If I'm going to remove any link, it doesn't affect other links. 10 00:00:41,670 --> 00:00:45,390 However, it will only affect a reduced link count. 11 00:00:47,040 --> 00:00:49,920 We cannot create hard links for directress. 12 00:00:51,270 --> 00:00:52,440 Let's create a directory. 13 00:00:52,620 --> 00:00:56,550 And also I'm going to create a text file inside the directory. 14 00:00:57,030 --> 00:00:59,520 So I'm going to run Tokamak make directory. 15 00:00:59,790 --> 00:01:03,440 And I'm going to call this hard link, c.D. 16 00:01:03,510 --> 00:01:09,840 Hard bank, Dutch file the taxi and card, file the text. 17 00:01:09,930 --> 00:01:14,340 As we can see, your friend, you wouldn't have any text inside this text file. 18 00:01:14,670 --> 00:01:15,300 Now I'm going to. 19 00:01:15,610 --> 00:01:16,220 The hard links. 20 00:01:16,240 --> 00:01:16,730 So l. 21 00:01:16,980 --> 00:01:17,280 M. 22 00:01:18,410 --> 00:01:24,200 This is the command for creating HotLink Din, the name of the text file. 23 00:01:24,590 --> 00:01:25,690 Dan is a short name. 24 00:01:25,710 --> 00:01:28,830 I'm going to use a one hit enter. 25 00:01:28,880 --> 00:01:31,550 Then I'm going to add a text to. 26 00:01:32,860 --> 00:01:46,960 The new link here, the one so I'm going to say hello, George, to F1 cat, a four cat five that deoxy, 27 00:01:47,020 --> 00:01:48,040 as we can see over here. 28 00:01:48,100 --> 00:01:53,050 We do have the same contents inside this bar, inside these text files. 29 00:01:53,350 --> 00:02:02,460 I also can do the same thing here, Red Hat and send to or is going to about to the club that takes 30 00:02:02,470 --> 00:02:09,600 the cat farther to extreme than Cat if as we can see over here. 31 00:02:09,669 --> 00:02:13,410 We do have the same content in both files. 32 00:02:14,410 --> 00:02:15,700 If I'm going to end the comment L. 33 00:02:15,720 --> 00:02:16,560 S dash l. 34 00:02:16,670 --> 00:02:17,400 By s. 35 00:02:17,740 --> 00:02:23,380 So the dash I print the index number of each file. 36 00:02:23,860 --> 00:02:29,160 And as for the size, as you can see on the screen, we do have the same I.A. number. 37 00:02:29,230 --> 00:02:30,430 This is the ideal number. 38 00:02:31,210 --> 00:02:37,930 And also we have the same five permissions and both two ex-wives. 39 00:02:38,380 --> 00:02:42,010 We're going to talk about the file permissions in the next chapter. 40 00:02:42,910 --> 00:02:44,380 We also have the same. 41 00:02:46,050 --> 00:02:51,110 Sighs For both tickets fights that I know. 42 00:02:51,150 --> 00:02:51,690 No. 43 00:02:53,150 --> 00:02:54,280 Is the index number. 44 00:02:54,680 --> 00:02:55,310 This number. 45 00:02:55,330 --> 00:03:02,630 Is the data structure that contains information and attributes about five under cheese choose this information 46 00:03:02,630 --> 00:03:10,580 attributes, for example, five times permissions user I.D. grew by the number of links, for example, 47 00:03:10,610 --> 00:03:14,720 softening hard, hardening five size and time stamps. 48 00:03:16,100 --> 00:03:20,270 Now let's move on and kill you and remove. 49 00:03:21,670 --> 00:03:23,830 I'm going to remove the origin five right now. 50 00:03:24,940 --> 00:03:26,470 And this is the original Filey. 51 00:03:28,650 --> 00:03:34,200 R m in the file, the TCT ginger ale s dash l. 52 00:03:35,130 --> 00:03:39,010 I, as you can see over here, we still have the same number. 53 00:03:39,250 --> 00:03:39,910 However. 54 00:03:41,090 --> 00:03:46,040 As you can see, I mentioned at the beginning of decision, this is the only thing that affected. 55 00:03:48,130 --> 00:03:51,290 It's the link count is going to reduce. 56 00:03:51,310 --> 00:03:52,450 We used to have to. 57 00:03:53,360 --> 00:03:55,790 And right now, we have only one. 58 00:03:58,880 --> 00:04:02,920 The second thing I'm going to talk about is a soft drink right now. 59 00:04:03,070 --> 00:04:04,580 We're going to move on to the soft drink. 60 00:04:06,320 --> 00:04:08,580 Something is also called symbolic link. 61 00:04:08,620 --> 00:04:11,320 If we had a symbolic link, it means a soft link. 62 00:04:12,160 --> 00:04:15,340 Basically, it's a file that points to another file. 63 00:04:16,850 --> 00:04:19,500 It's like a short cut in Microsoft Windows. 64 00:04:21,560 --> 00:04:25,550 Both the soft link and donation of five 1/2 different ideas. 65 00:04:26,160 --> 00:04:28,900 And the hard link, we have the same. 66 00:04:29,030 --> 00:04:31,070 I know, no, but in the soft link. 67 00:04:34,000 --> 00:04:37,120 And the original file doesn't have the same. 68 00:04:38,500 --> 00:04:44,650 I know no soft drink has the bath for the original five, but not the content. 69 00:04:46,000 --> 00:04:47,980 If I'm going to remove the soft drink. 70 00:04:49,570 --> 00:04:52,540 It's not going to affect the original fight. 71 00:04:53,740 --> 00:04:59,360 However, when I remove the original file, the soft drink will be useless. 72 00:05:00,160 --> 00:05:02,920 And it points to a non existing five. 73 00:05:04,970 --> 00:05:05,870 We can. 74 00:05:06,990 --> 00:05:09,470 Create a soft drink for. 75 00:05:10,430 --> 00:05:11,230 And Derek. 76 00:05:12,650 --> 00:05:18,320 Now I'm going to create a new directory and I'm going to call this one soft link. 77 00:05:20,380 --> 00:05:32,450 c.D Soft Nenke cleared the screen and I'm going to create a file here at X five judge file that takes 78 00:05:32,450 --> 00:05:32,970 T. 79 00:05:35,110 --> 00:05:36,470 I'm going to interrupt now. 80 00:05:37,790 --> 00:05:40,190 And I'm going to do the same thing. 81 00:05:40,370 --> 00:05:41,270 Let me run. 82 00:05:41,360 --> 00:05:44,540 Ellis Desh, ally, as you can see here, this is it. 83 00:05:44,580 --> 00:05:44,890 I know. 84 00:05:44,940 --> 00:05:48,290 No, this is the link count. 85 00:05:49,010 --> 00:05:53,480 Now, I'm going to before I'm going to add a text to this file. 86 00:05:53,510 --> 00:05:54,700 I'm going to create the soft. 87 00:05:54,790 --> 00:05:59,890 So the suffering is basically the only difference between the soft drink and the hard. 88 00:06:00,050 --> 00:06:03,020 So I'm going to try the same command then for the soft drink. 89 00:06:03,380 --> 00:06:05,600 I'm going to type dash s. 90 00:06:06,260 --> 00:06:12,960 This just means a symbolic link or a soft link in the name of the five eidetic street. 91 00:06:13,180 --> 00:06:16,370 And also I'm going to give like a short name link. 92 00:06:16,880 --> 00:06:17,390 If one. 93 00:06:18,660 --> 00:06:20,680 Had to endure this crash. 94 00:06:20,810 --> 00:06:22,530 Then I hit enter. 95 00:06:23,040 --> 00:06:24,230 As you can see over here. 96 00:06:25,560 --> 00:06:31,850 We do have different I know the numbers in the soft drink you. 97 00:06:35,260 --> 00:06:37,030 And a symbolic link has. 98 00:06:37,690 --> 00:06:38,680 This is the symbolic link. 99 00:06:38,800 --> 00:06:42,090 You can see the difference that we used to have for the hard link. 100 00:06:42,910 --> 00:06:43,690 It has EBR. 101 00:06:45,610 --> 00:06:46,870 This is the symbolically. 102 00:06:46,990 --> 00:06:49,420 This is before the permission to the permission. 103 00:06:49,780 --> 00:06:53,020 As I said, that we're going to talk about the permission, the next chapter. 104 00:06:53,320 --> 00:06:54,910 This is to represent the link. 105 00:06:55,980 --> 00:06:59,980 Permissions also are, as you can see, also are different. 106 00:07:00,610 --> 00:07:06,400 We have different permissions for the soft drink and the origin of five. 107 00:07:09,520 --> 00:07:12,130 If I'm going to add a text, let me add attic's a call. 108 00:07:14,020 --> 00:07:15,370 Then hello, award. 109 00:07:17,530 --> 00:07:20,620 To the symbolic link or the soft link? 110 00:07:21,420 --> 00:07:21,890 Catch. 111 00:07:22,170 --> 00:07:28,270 If one brincat, father takes tea, as he can see over here. 112 00:07:28,300 --> 00:07:30,180 We do have the same content. 113 00:07:31,240 --> 00:07:32,460 And both files. 114 00:07:33,670 --> 00:07:35,910 Now let's remove the original file. 115 00:07:36,970 --> 00:07:37,690 As I said. 116 00:07:39,220 --> 00:07:42,520 When I explained the soft drink or the symbolic link. 117 00:07:44,190 --> 00:07:50,050 When I remove the soft link, it's not going to affect the original find. 118 00:07:51,150 --> 00:07:56,100 However, when I remove the original file, the soft drink will be useless. 119 00:07:56,130 --> 00:07:57,420 This one would be useless. 120 00:07:58,530 --> 00:08:01,790 And it points to an existing fight. 121 00:08:02,550 --> 00:08:04,140 Let's do an example. 122 00:08:04,710 --> 00:08:05,540 So our M. 123 00:08:06,580 --> 00:08:11,780 I'm going to remove the original five hit enter Ellis Dash. 124 00:08:11,910 --> 00:08:17,400 And I as you can see over here, I said that. 125 00:08:19,140 --> 00:08:24,420 The symbolic link will be useless and it points to an existing file. 126 00:08:25,050 --> 00:08:26,790 And if I'm going to. 127 00:08:29,520 --> 00:08:31,800 To display the content of the F1. 128 00:08:33,250 --> 00:08:35,730 Hit enter, as we can see over here. 129 00:08:37,309 --> 00:08:43,350 What it shows me, it shows me that there is no such fight or advantage because of what? 130 00:08:43,370 --> 00:08:47,510 Because we have removed that region on five. 131 00:08:50,160 --> 00:08:51,540 That's conclude our decision. 132 00:08:52,140 --> 00:08:52,600 Thank you. 133 00:08:52,630 --> 00:08:53,940 And see you on the next, miss.