Hello Friends will come back in this lesson.
We're going to talk about the setting of you must value and also the concept of soft links and hard
links.
So let's see practically about this concept.
One by one or get in the Linux environment.
When we create any new file or directory and then that trick your file is get created by some default
attributes or default permissions.
So let's read the file here.
Touch XTi the list views permissions again.
Now here you can see this student or XTi file is created with write permission for user group and other
users.
So setting up you must Veliz means you can set your own permissions.
OK.
In the Linux environment for Windows users that create a new file then that final Firedrake is created
with the word missions that you set and you can set those permissions with the help of you must come
on.
So to view the current in my settings Just type of mask.
OK.
And these are the current You must settings.
So there is a rule to apply there you must searching for file and for folder or directory when you want
to apply the settings for file.
I mean suppose you want to set up reader permissions for all these user group and other user then what
you need to do is you need to provide the value to too.
So what I'm providing the value here who could do so so then you set the number or whatever number you
set here.
You can see the number here from 0 to 7.
OK.
You cannot set any number beyond that.
And when you said any number then that number gets substracted from 6 6.
In case of file and from 7 in case of folder and of after substracting or what remains and that value
is applied as a permission on file or directly target.
So when I said here you could go then it is applied for a user group and other users.
So it's good substracted from file that is 6.
And so when 6 minus 2 is equal to 4 then 4 means a real permission.
OK so I'm going to apply the real permission for only here.
So that is why I said this.
You must set things so let's see then.
Now create a new file here that's got DST and now it's permission.
And here you can see the destock the file is created with read permission.
When you create a directory directly with the US holds Steve.
Yes.
OK.
Here you can see the directories get created with the read Exit couldn't read Exit get permission.
OK not one point that you can set the exec permission for file.
OK with you my settings.
But you can't control the permission for directory venue or you want to set the most permission.
Suppose you want to avoid the exit get permission for directory.
Then you can simply set the values according to that means.
Suppose I set the value here 0 0 1.
Let's see what happens.
And it's created directly in our last one.
Now let's do the contents.
OK.
Now here you can see this one directory's get created there.
It is not having execute permission for other users.
OK because we said and no one at the end.
So seven minus one is six.
So six means there is only read and write permission because for permission there is number four and
four write permission.
That is number two so four plus six.
That's why the permissions are applied.
OK.
In this way.
So in this way you can sort of leave us values.
Now let's talk about.
What is softly a soft link is a so-called symbolic link or a symlink.
And it is work or it work like a shortcut inside the Windows environment.
OK suppose our file is present on the audio drive in Windows then we create a shortcut on desktop.
Simply access that file very fast so softly.
Work like that.
So how to create a softly create a new file here.
Just to gawk DST
you know that some condense.
This is the that's
you know or will file this copy the studio is hearing these contents OK.
So I hope to read the soft link for it.
All shot good for it.
So did I become more alone than yes.
And then the source file.
So spelling is this Who got the ax deal and the new soft monkey's soft.
Got the XTi.
OK.
Now let's review.
And here you can see these soft dark 60s the Shockley.
And we just get created here and here you can see how the soft links are displayed in the Linux environment.
OK.
And these arrows pointing to the source file.
OK.
With the short link.
So now we can't access the contents of this.
You got the ASCII file of a soft link.
So let's get sauf got the XTi OK.
So now we are accessing the contents of this got the ex-US softly and just type here.
So here let's observe the I know number OK here you can see the numbers.
The numbers are the I know numbers in Linux environment.
The files are recognizable bytes.
I know the number.
Not with the file name file names are for the convenience for the humans.
OK.
So here I know numbers are present and these are like a data structure.
So let's observe the I know Number of this do not be XTi that is 1 3 3 6 9 5.
And I know a number of soft topics that is 1 3 3 6 9 2 Sobota hiring different kind or get different
final number.
So what happens when I delete the source file this
cased block 60.
OK.
Now let's take a look at this sort of topics.
OK.
Now it says no such file or that was present.
That means when we delete the source file then we can be able to access the contents of the file why
soft link.
OK.
Now we learn how to create a soft link or any file.
So now I me show you how to create an hardlink.
So hardlink is nothing but a new name for an existing file.
OK.
In case of hardlink when you create it then it is going to say why no numbers are good that the source
file is heavy.
Or let's create here.
Hardly.
Come on.
OK.
The same command is used.
And here you need to provide the source file.
Suppose I want to create an army for.
OK.
Let's create a new file here.
STUDENT 2.
Got it.
Let's
go.
This is a class
you know the contents
only the contents are added in the file.
Now let's get to Harlem third grader hulling long.
And then the source file this student who got the XP and new name or the hardlink name so hard to know
the extent now.
OK.
Here you can see how excited hardly is get created here for the white student who got 60.
And you can see here a vote on having the same my number.
OK.
And let's access the contents of hardlink.
So get off piste.
OK.
Both are having the same content.
And when they remove the source file was filed in student 2.0.
Exactly.
OK.
And now again the contents of hard luck OK the contents are still present there means we can't access
the contents on removal of the source file.
OK.
In this way the hard line and soft lines are used in the Linux environment.
OK.
OK here I will show you a practical example of suckling.
Let's get inside the room directly.
And here you can see OK it is the image file.
OK.
And it is a soft link.
I and I aren't even softening good image file of the Linux environment here.
OK.
This fear is soft links are actually used here.
Soft links are present.
OK.
In the Linux.