What IS The Difference Between The Hard Link And Soft Link

In This Tutorial We Are Going To Learn What Is Hard Link And Soft Link And What Is The Difference Between Hard Link And Soft Link

It Is Very Easy To Understand What IS Hard Link And What Is Soft Link

Just Follow These Simple Steps

Step-1 What IS Hard Link ?

Hard Link Is Used For To Link The 2 Or More Multiple Files

Step-2 What IS Soft Link ?

Soft Link Is Used For To Link The Both File And Folder

Step-3 How To Link File In Hard Link

Here IS The Command To Link The File In Hard Link

First We Have To Create File

#vim file.txt

#cat file.txt

#ln file.txt /root/Desktop /hacking.txt

#ls

Now If You Change In One File Then It Will Automatically Changed In Other File Also

Step-4 How To Link File And Folder In Soft Link

Here IS The Command To Link The File And Folder Both  In Soft Link

First We Have To Create Folder

#mkdir ccna

#cd ccna

#vim a.txt

#cd

#ln -s ccna /root/Desktop /linux

#cd Desktop

#ls

#cd linux

#ln -s ccna linux

#cd linux

#touch {1..10}.txt

#pwd

#cd ..

#cd ccna

#pwd #ls -li

Now Here We Have Create 10 Text File in linux Folder And It Will Automatically Also Shown In ccna Folder Also

 

So This Is All What Is Hard Link And Soft Link And  How To Configure Hard Link And Soft Link And What Is The Difference Between Hard Link And Soft Link

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s