The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need some info about symbolic link and hard link detective linux UNIX for Dummies Questions & Answers 2 01-08-2008 04:36 AM
Differentiate Soft and Hard Link balu_solaris UNIX for Dummies Questions & Answers 2 07-18-2007 11:41 PM
hard/soft link question Browser_ice UNIX for Dummies Questions & Answers 1 08-18-2006 11:13 PM
Difference between hard link and soft link in unix RAJACHOKALINGAM UNIX for Dummies Questions & Answers 2 08-01-2006 01:10 AM
Differences between hard link and soft link penguin-friend UNIX for Advanced & Expert Users 3 03-08-2002 12:49 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-28-2008
Registered User
 

Join Date: Jun 2007
Posts: 115
Hard Link vs SOft Link????

Hi

PLease let me know the usage of Hard Link vs Soft Link

i.e what is the basic difference and what happens when one file is changed or deleted in both the cases???

thanks
Reply With Quote
Forum Sponsor
  #2  
Old 05-28-2008
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,061
Again, this looks like homework. Please do not post homework.

You are obviously able to access the Internet since you are posting here. Do a web seach on the topic and you will find all the information on ln(1) that you could ever wish for.

If you have no access to UNIX/Linux man pages, simply seach the Web for "linux man ln(1)" or similar.
Reply With Quote
  #3  
Old 05-28-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,328
As mentioned in one of your other posts, read some books or tutorials for this basic question:

Unix Tutorials/Programming Tutorials/Shell Scripting Tutorials

Regards
Reply With Quote
  #4  
Old 05-29-2008
Registered User
 

Join Date: May 2008
Posts: 6
hard lick-- used in cases when you want the link to be in the same file system. In this case the inode for both link and the file is the same. If you want to move the shardlink to another location or you want to move the original file, it does not affect either of them.

command is ln "file name" "link"

this can not be used on directories. and can be used only in the same fS and not outside file systems

Soft links: used when you want a temporary link. ths inode values are different here for link and the file.
this can be both for file and directories.
If the source file gets deleted the link will be removed at next reboot
. This can extend across file systems

command is ---ln -s "file" "link"

please reverrt if you have any qureries.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0