Hello, everyone.
And this demo, I'm going to show you how to create a hard link and a soft link.
The first thing I'm going to talk about is a hotlink.
We can define a hard link as an exact replica of a fire.
Different names for the exact same file.
Hard links have the Sam I know it's a number and actual five contacts.
If I remove the original file, then the link doesn't get affected.
And it shows the contents of the file.
If I'm going to remove any link, it doesn't affect other links.
However, it will only affect a reduced link count.
We cannot create hard links for directress.
Let's create a directory.
And also I'm going to create a text file inside the directory.
So I'm going to run Tokamak make directory.
And I'm going to call this hard link, c.D.
Hard bank, Dutch file the taxi and card, file the text.
As we can see, your friend, you wouldn't have any text inside this text file.
Now I'm going to.
The hard links.
So l.
M.
This is the command for creating HotLink Din, the name of the text file.
Dan is a short name.
I'm going to use a one hit enter.
Then I'm going to add a text to.
The new link here, the one so I'm going to say hello, George, to F1 cat, a four cat five that deoxy,
as we can see over here.
We do have the same contents inside this bar, inside these text files.
I also can do the same thing here, Red Hat and send to or is going to about to the club that takes
the cat farther to extreme than Cat if as we can see over here.
We do have the same content in both files.
If I'm going to end the comment L.
S dash l.
By s.
So the dash I print the index number of each file.
And as for the size, as you can see on the screen, we do have the same I.A. number.
This is the ideal number.
And also we have the same five permissions and both two ex-wives.
We're going to talk about the file permissions in the next chapter.
We also have the same.
Sighs For both tickets fights that I know.
No.
Is the index number.
This number.
Is the data structure that contains information and attributes about five under cheese choose this information
attributes, for example, five times permissions user I.D. grew by the number of links, for example,
softening hard, hardening five size and time stamps.
Now let's move on and kill you and remove.
I'm going to remove the origin five right now.
And this is the original Filey.
R m in the file, the TCT ginger ale s dash l.
I, as you can see over here, we still have the same number.
However.
As you can see, I mentioned at the beginning of decision, this is the only thing that affected.
It's the link count is going to reduce.
We used to have to.
And right now, we have only one.
The second thing I'm going to talk about is a soft drink right now.
We're going to move on to the soft drink.
Something is also called symbolic link.
If we had a symbolic link, it means a soft link.
Basically, it's a file that points to another file.
It's like a short cut in Microsoft Windows.
Both the soft link and donation of five 1/2 different ideas.
And the hard link, we have the same.
I know, no, but in the soft link.
And the original file doesn't have the same.
I know no soft drink has the bath for the original five, but not the content.
If I'm going to remove the soft drink.
It's not going to affect the original fight.
However, when I remove the original file, the soft drink will be useless.
And it points to a non existing five.
We can.
Create a soft drink for.
And Derek.
Now I'm going to create a new directory and I'm going to call this one soft link.
c.D Soft Nenke cleared the screen and I'm going to create a file here at X five judge file that takes
T.
I'm going to interrupt now.
And I'm going to do the same thing.
Let me run.
Ellis Desh, ally, as you can see here, this is it.
I know.
No, this is the link count.
Now, I'm going to before I'm going to add a text to this file.
I'm going to create the soft.
So the suffering is basically the only difference between the soft drink and the hard.
So I'm going to try the same command then for the soft drink.
I'm going to type dash s.
This just means a symbolic link or a soft link in the name of the five eidetic street.
And also I'm going to give like a short name link.
If one.
Had to endure this crash.
Then I hit enter.
As you can see over here.
We do have different I know the numbers in the soft drink you.
And a symbolic link has.
This is the symbolic link.
You can see the difference that we used to have for the hard link.
It has EBR.
This is the symbolically.
This is before the permission to the permission.
As I said, that we're going to talk about the permission, the next chapter.
This is to represent the link.
Permissions also are, as you can see, also are different.
We have different permissions for the soft drink and the origin of five.
If I'm going to add a text, let me add attic's a call.
Then hello, award.
To the symbolic link or the soft link?
Catch.
If one brincat, father takes tea, as he can see over here.
We do have the same content.
And both files.
Now let's remove the original file.
As I said.
When I explained the soft drink or the symbolic link.
When I remove the soft link, it's not going to affect the original find.
However, when I remove the original file, the soft drink will be useless.
This one would be useless.
And it points to an existing fight.
Let's do an example.
So our M.
I'm going to remove the original five hit enter Ellis Dash.
And I as you can see over here, I said that.
The symbolic link will be useless and it points to an existing file.
And if I'm going to.
To display the content of the F1.
Hit enter, as we can see over here.
What it shows me, it shows me that there is no such fight or advantage because of what?
Because we have removed that region on five.
That's conclude our decision.
Thank you.
And see you on the next, miss.