Hard and soft links in Linux
In Linux it is possible to create soft and hard links.
Links are created with ln command. Hard links point to the data in disk. If first file is deleted, then this link will still point to this data.
Soft links point to the file. If this file is deleted, then this link does not know where to point to.
A soft link can point to file which is located in a different physical disk, but hard links can't.
It is possible to link both files and folders.
Comments
Post a Comment