14 June 2017

Difference between softlink and HardLink in Linux with example

HardLink: it is like mirror copy of original file. These links share the same inodes. Changes made to the original or hard linked file will reflect in the other. When you delete Hard Link nothing will happen to the other file. Hard links can't cross file systems.

SoftLink: contain link to original file. These links will have different inode value. SoftLink points to original file so if original file is deleted the softlink do not work.






No comments:

Post a Comment