Tuesday, January 17, 2017

Soft Link and Hard Link

Soft Link:


ln –s /full-path-of-source-file  /full-path-of-new-file

Hard Link:

ln  /full-path-of-source-file  /full-path-of-new-file


Notes:

In hard link the inode is same because it will directly link to the file on the hard disk. If the permission of link is changed, the source file permission also changes.

No comments:

Post a Comment