Soft link has a different inode number and original file has different number. Soft link can link to a directory and the link will not have original file but shows the path.
Hard link has same inode number and will have original file contents. Removing the links will not affect original file contents. We cannot create a hard link to a directory.
Hard link has same inode number and will have original file contents. Removing the links will not affect original file contents. We cannot create a hard link to a directory.
No comments:
Post a Comment