EmbLogic's Blog

Difference between Hardlink & Softlink/Symbolic link

Hard link is a directory reference or pointer to a file. Hardlink is a label stored in a directory structure that refers the operating system to the file data when it is accessed.
Symbolic links are automatically resolved by the file system. Any software programs, upon accessing a symbolic link, will see the target instead, whether the program is aware of symbolic links or not. symlinks are like shortcuts.
Difference:
Hardlink creates the file with same inode number,size, & file permission of original file whereas Softlink creates the file with diferent inode number, size, & file permissions
when original file deleted, hardlink file still remain same but softlink file contents will lost.

new

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>