Google News
logo
Linux - Interview Questions
What is the difference between hard links and soft links?
Here is the table that shows the difference between soft links and hard links :

Hard Links Soft Links
It includes original content. It includes the original file location.
Hard links are faster as compared to soft links. Soft links are slower.
It shares similar inode numbers. It shares different inode numbers.
There is no relative path for hard links. Relative paths are used for soft links.
It didn’t link the directories. It links the directories.
Any change in this link reflects other files directly. Every change in this link reflects its hard link and the actual file directly.
It uses less memory. It uses more memory.
Advertisement