Pages

Thursday, May 4, 2017

What is Soft Link and Hard Link

Here is Simple difference between soft link and hard link.



Softlink
Hardlink
File
Same file, but 2 inode number
2 diff files, Same Inode number
Filesystem Limit
Can cross file system
Cannot cross file system
Between Dir’s
Possible
Not Possible
Link Count
Link count value is 1
Link count value is 2
Command
ln –s <source> <link file>
ln <source> <link file>
To unlink
# unlink <link file name>
Source removal
Will affect the link file
Won't affect the link file


No comments:

Post a Comment