Skip to content

How To Configure Hard Link And Soft Link In And What Is The Use Of Hard Link And Soft Link Redhat Enterprise Linux Rhel-4&5

Our Score
Click to rate this post!
[Total: 0 Average: 0]

In This Tutorial We Are Going To Learn What Is Hard Link And What Is Soft Link Or How To Configure Them

What IS Hard Link ?

Hard Link Is Used For Link The File Suppose I Am Having 1 File In Root Hacking.txt And I Want One More File In Desktop Whith Other Name But Same Content So That Time We Use Hard Link

What Is Soft Link ?

Soft Link Is Used For Link The Folder Suppose I Am having One Folder In Root And I Want One More Folder In Desktop With Other Name But Same Content Inside The Folder So That Time We Use Soft link

Now How To Do Or Configure Hard link And Soft Link 

First I Will Tell You How To Configure Hard Link

Firstly Login With Root In Linux

Here I Am Creating File In root

#vim redhat.txt {After This Write Some Content Inside This File}

#cat redhat.txt {To Check The Content}
#ln redhat.txt /root/Desktop/red.txt
#cd Desktop/
#ls
#cat red.txt

Now If You Cange The Content Of red.txt Then The Content Of redhat.txt Will Automatically Will Change So How To Change The Content Of red.txt And How To Check The Content Of redhat.txt After Changing The Content Of red.txt

#cd Desktop/
#vim red.txt {After This Add Some Line Inside This File}
#cd
#ls
#cat redhat.txt

This Is All How To Configure Hard Link 

Now How To Do Soft Link or How To Configure Soft Link

Here I Am Creating Folder In Root

#mkdir /jack 

#cd /jack
#vim a.txt {After This Write Some Content Inside This File a.txt}
#cd ..
#ln -s jack Desktop/black
#cd Desktop/
#ls
#cd black
#ln -s jack black
#cd black
#touch {1..5}.txt
#pwd
#cd ..
#cd jack
#pwd
#ls -li

Here You Can Check This Picture How I Do This Configuration Of Soft Link

This Is All How To Configure Hard Link And Soft Link In Redhat Enterprise Linux Rhel-4&5

Now Follow This All And Configure By Yourself  Hard Link And Soft Link

Leave a Reply

Discount Offer

Now Get 67% Discount

On Cyber Security Training                                                       Notes  

Click here  To Purchase

%d bloggers like this: