Question { 13107 }
the difference between a soft link and a hard link?
Answer
Soft Link:
1. It can be created across file system
2. Different inode number than original file.
3. On deleting original file soft link cannot be accessed.
4. Can be created on a file or directory.
5. Source file need not exist for soft link creation.
6. Need extra memory to store data of original file.
7. Access to the file is slower due to overhead to access
file.
Hard Link:
1. Only within file system.
2. Same inode number as original file.
3. It can still be accessed.
4. Only on files.
5. Source file should exist.
6. Not required.
7. Faster than soft link.
Thanks,
Srini