WEBVTT

00:09.230 --> 00:11.620
Hello Friends will come back in this lesson.

00:11.630 --> 00:18.010
We're going to talk about the setting of you must value and also the concept of soft links and hard

00:18.010 --> 00:18.840
links.

00:19.160 --> 00:22.310
So let's see practically about this concept.

00:22.310 --> 00:25.230
One by one or get in the Linux environment.

00:25.250 --> 00:32.840
When we create any new file or directory and then that trick your file is get created by some default

00:33.140 --> 00:35.560
attributes or default permissions.

00:35.630 --> 00:38.480
So let's read the file here.

00:38.760 --> 00:44.720
Touch XTi the list views permissions again.

00:44.930 --> 00:52.310
Now here you can see this student or XTi file is created with write permission for user group and other

00:52.310 --> 00:53.250
users.

00:53.250 --> 00:57.560
So setting up you must Veliz means you can set your own permissions.

00:57.570 --> 00:58.320
OK.

00:58.370 --> 01:05.990
In the Linux environment for Windows users that create a new file then that final Firedrake is created

01:05.990 --> 01:12.260
with the word missions that you set and you can set those permissions with the help of you must come

01:12.260 --> 01:12.810
on.

01:13.080 --> 01:18.620
So to view the current in my settings Just type of mask.

01:18.890 --> 01:19.410
OK.

01:19.580 --> 01:22.730
And these are the current You must settings.

01:22.820 --> 01:30.470
So there is a rule to apply there you must searching for file and for folder or directory when you want

01:30.470 --> 01:33.900
to apply the settings for file.

01:33.950 --> 01:42.850
I mean suppose you want to set up reader permissions for all these user group and other user then what

01:42.860 --> 01:46.300
you need to do is you need to provide the value to too.

01:46.490 --> 01:54.530
So what I'm providing the value here who could do so so then you set the number or whatever number you

01:54.530 --> 01:55.370
set here.

01:55.430 --> 01:59.000
You can see the number here from 0 to 7.

01:59.030 --> 01:59.300
OK.

01:59.300 --> 02:01.820
You cannot set any number beyond that.

02:01.820 --> 02:07.720
And when you said any number then that number gets substracted from 6 6.

02:07.790 --> 02:16.460
In case of file and from 7 in case of folder and of after substracting or what remains and that value

02:16.640 --> 02:21.760
is applied as a permission on file or directly target.

02:21.830 --> 02:29.400
So when I said here you could go then it is applied for a user group and other users.

02:29.420 --> 02:34.370
So it's good substracted from file that is 6.

02:34.450 --> 02:41.050
And so when 6 minus 2 is equal to 4 then 4 means a real permission.

02:41.090 --> 02:45.110
OK so I'm going to apply the real permission for only here.

02:45.140 --> 02:47.760
So that is why I said this.

02:47.780 --> 02:50.710
You must set things so let's see then.

02:50.950 --> 02:59.040
Now create a new file here that's got DST and now it's permission.

02:59.270 --> 03:04.750
And here you can see the destock the file is created with read permission.

03:05.150 --> 03:12.210
When you create a directory directly with the US holds Steve.

03:12.740 --> 03:13.690
Yes.

03:14.360 --> 03:14.900
OK.

03:15.110 --> 03:21.130
Here you can see the directories get created with the read Exit couldn't read Exit get permission.

03:21.410 --> 03:26.770
OK not one point that you can set the exec permission for file.

03:26.990 --> 03:28.460
OK with you my settings.

03:28.490 --> 03:36.890
But you can't control the permission for directory venue or you want to set the most permission.

03:36.980 --> 03:41.930
Suppose you want to avoid the exit get permission for directory.

03:42.010 --> 03:47.870
Then you can simply set the values according to that means.

03:47.930 --> 03:51.080
Suppose I set the value here 0 0 1.

03:51.170 --> 03:52.810
Let's see what happens.

03:52.990 --> 03:59.590
And it's created directly in our last one.

03:59.630 --> 04:01.390
Now let's do the contents.

04:01.590 --> 04:01.850
OK.

04:01.850 --> 04:06.810
Now here you can see this one directory's get created there.

04:06.830 --> 04:10.710
It is not having execute permission for other users.

04:10.740 --> 04:13.860
OK because we said and no one at the end.

04:13.880 --> 04:16.020
So seven minus one is six.

04:16.070 --> 04:22.940
So six means there is only read and write permission because for permission there is number four and

04:22.940 --> 04:24.180
four write permission.

04:24.230 --> 04:26.740
That is number two so four plus six.

04:26.840 --> 04:30.170
That's why the permissions are applied.

04:30.290 --> 04:30.610
OK.

04:30.610 --> 04:31.770
In this way.

04:31.850 --> 04:34.590
So in this way you can sort of leave us values.

04:34.700 --> 04:37.180
Now let's talk about.

04:37.490 --> 04:43.200
What is softly a soft link is a so-called symbolic link or a symlink.

04:43.400 --> 04:49.170
And it is work or it work like a shortcut inside the Windows environment.

04:49.340 --> 04:55.490
OK suppose our file is present on the audio drive in Windows then we create a shortcut on desktop.

04:55.590 --> 05:00.770
Simply access that file very fast so softly.

05:00.890 --> 05:01.970
Work like that.

05:02.030 --> 05:07.230
So how to create a softly create a new file here.

05:08.280 --> 05:10.250
Just to gawk DST

05:14.570 --> 05:17.790
you know that some condense.

05:17.850 --> 05:20.410
This is the that's

05:28.760 --> 05:36.300
you know or will file this copy the studio is hearing these contents OK.

05:36.650 --> 05:39.290
So I hope to read the soft link for it.

05:39.300 --> 05:40.860
All shot good for it.

05:41.080 --> 05:45.720
So did I become more alone than yes.

05:45.810 --> 05:48.360
And then the source file.

05:48.540 --> 05:56.880
So spelling is this Who got the ax deal and the new soft monkey's soft.

05:56.880 --> 05:58.410
Got the XTi.

05:58.530 --> 05:59.190
OK.

05:59.490 --> 06:01.580
Now let's review.

06:01.830 --> 06:06.970
And here you can see these soft dark 60s the Shockley.

06:06.990 --> 06:13.360
And we just get created here and here you can see how the soft links are displayed in the Linux environment.

06:13.590 --> 06:14.120
OK.

06:14.420 --> 06:17.280
And these arrows pointing to the source file.

06:17.340 --> 06:17.830
OK.

06:17.880 --> 06:19.140
With the short link.

06:19.260 --> 06:22.410
So now we can't access the contents of this.

06:22.410 --> 06:24.910
You got the ASCII file of a soft link.

06:24.940 --> 06:29.980
So let's get sauf got the XTi OK.

06:30.240 --> 06:38.760
So now we are accessing the contents of this got the ex-US softly and just type here.

06:39.330 --> 06:45.240
So here let's observe the I know number OK here you can see the numbers.

06:45.270 --> 06:49.090
The numbers are the I know numbers in Linux environment.

06:49.260 --> 06:52.210
The files are recognizable bytes.

06:52.230 --> 06:53.220
I know the number.

06:53.280 --> 06:58.770
Not with the file name file names are for the convenience for the humans.

06:58.770 --> 06:59.170
OK.

06:59.310 --> 07:05.220
So here I know numbers are present and these are like a data structure.

07:05.220 --> 07:12.970
So let's observe the I know Number of this do not be XTi that is 1 3 3 6 9 5.

07:13.090 --> 07:21.720
And I know a number of soft topics that is 1 3 3 6 9 2 Sobota hiring different kind or get different

07:21.720 --> 07:22.610
final number.

07:22.710 --> 07:27.300
So what happens when I delete the source file this

07:30.190 --> 07:32.230
cased block 60.

07:32.370 --> 07:32.740
OK.

07:32.760 --> 07:37.990
Now let's take a look at this sort of topics.

07:38.290 --> 07:38.760
OK.

07:38.850 --> 07:41.650
Now it says no such file or that was present.

07:41.730 --> 07:49.840
That means when we delete the source file then we can be able to access the contents of the file why

07:49.920 --> 07:50.930
soft link.

07:51.030 --> 07:51.580
OK.

07:51.750 --> 07:55.170
Now we learn how to create a soft link or any file.

07:55.410 --> 08:00.420
So now I me show you how to create an hardlink.

08:00.420 --> 08:05.230
So hardlink is nothing but a new name for an existing file.

08:05.310 --> 08:06.240
OK.

08:06.330 --> 08:12.300
In case of hardlink when you create it then it is going to say why no numbers are good that the source

08:12.300 --> 08:13.440
file is heavy.

08:13.490 --> 08:15.020
Or let's create here.

08:15.270 --> 08:16.190
Hardly.

08:16.270 --> 08:16.860
Come on.

08:16.920 --> 08:17.260
OK.

08:17.280 --> 08:18.630
The same command is used.

08:18.630 --> 08:20.990
And here you need to provide the source file.

08:21.340 --> 08:24.670
Suppose I want to create an army for.

08:24.990 --> 08:25.950
OK.

08:26.160 --> 08:29.500
Let's create a new file here.

08:30.890 --> 08:32.400
STUDENT 2.

08:32.490 --> 08:34.500
Got it.

08:35.090 --> 08:35.360
Let's

08:38.440 --> 08:40.140
go.

08:40.220 --> 08:42.890
This is a class

08:48.980 --> 08:51.610
you know the contents

08:54.760 --> 08:57.860
only the contents are added in the file.

08:57.860 --> 09:02.000
Now let's get to Harlem third grader hulling long.

09:02.190 --> 09:12.450
And then the source file this student who got the XP and new name or the hardlink name so hard to know

09:12.480 --> 09:16.200
the extent now.

09:16.970 --> 09:17.880
OK.

09:18.040 --> 09:25.450
Here you can see how excited hardly is get created here for the white student who got 60.

09:25.510 --> 09:29.590
And you can see here a vote on having the same my number.

09:29.750 --> 09:30.260
OK.

09:30.550 --> 09:34.780
And let's access the contents of hardlink.

09:34.840 --> 09:38.010
So get off piste.

09:38.070 --> 09:38.460
OK.

09:38.480 --> 09:40.600
Both are having the same content.

09:40.810 --> 09:47.870
And when they remove the source file was filed in student 2.0.

09:48.060 --> 09:49.250
Exactly.

09:49.680 --> 09:50.430
OK.

09:50.430 --> 09:58.690
And now again the contents of hard luck OK the contents are still present there means we can't access

09:58.690 --> 10:01.830
the contents on removal of the source file.

10:02.010 --> 10:02.260
OK.

10:02.260 --> 10:07.820
In this way the hard line and soft lines are used in the Linux environment.

10:07.860 --> 10:08.360
OK.

10:08.600 --> 10:12.320
OK here I will show you a practical example of suckling.

10:12.400 --> 10:14.710
Let's get inside the room directly.

10:15.230 --> 10:18.900
And here you can see OK it is the image file.

10:18.940 --> 10:19.270
OK.

10:19.270 --> 10:20.980
And it is a soft link.

10:21.010 --> 10:26.880
I and I aren't even softening good image file of the Linux environment here.

10:27.010 --> 10:27.570
OK.

10:27.840 --> 10:30.730
This fear is soft links are actually used here.

10:30.870 --> 10:32.290
Soft links are present.

10:32.400 --> 10:32.850
OK.

10:32.950 --> 10:33.670
In the Linux.
