We help IT Professionals succeed at work.

Hard Link? Soft Link ?

totoro030898
totoro030898 asked
on
Medium Priority
1,916 Views
Last Modified: 2013-12-26
What is hard link and soft link? and what's the differences between them?
Comment
Watch Question

ozo
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2015

Commented:
Hard links point to the same inode
A soft or symbolic link is a special kind of file whose contents are the name of another file
in addition to ozo's comment:

because of a hard link's nature (inode), hard links cannot cross partitions (usually),
while a symbolik link may point to a file/directory (or whatever is possible in a file system) anywhere, even on NFS

removing a hard links does not remove a file as long as it is not the last link count (no more hard links), removing the target of a symbolic link makes the file inaccesable

Commented:
Soft links are like "shortcuts" in MS Windows and "aliases" in Mac. A hard link is the same, only the is no one link is the "original" file - they are all equal (except for their paths).
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.