top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

What is difference between HardLink and SoftLink in UNIX?

+1 vote
52 views
What is difference between HardLink and SoftLink in UNIX?
posted Nov 2, 2015 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

HARDLINK:
1) It's a directory entry (a file) pointing to the same inode. Even if you change the name of the other file, a hardlink still points to the file.
2) If you replace the other file with a new version (by copying it), a hardlink will not point to the new file.
3) With hardlinks you don't have concept of the original files and links, all are equal

SOFTLINK or SYMBOLIC LINK:
1) symlink is actually pointing to another path (a file name); it resolves the name of the file each time you access it through the symlink.
2) If you move the file, the symlink will not follow.
3) If you replace the file with another one, keeping the name, the symlink will point to the new file.

answer Nov 2, 2015 by Salil Agrawal
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...