What is Hardlink and Softlink in Unix?
S.no | HARDLINK | SOFTLINK |
---|---|---|
1. | Additional name for the same existing file. Hardlink acts as a shortcut to the file that has been hardlinked. | A file that points to another file through a pointer. There is no data in the target file. |
2. | Preserves the contents of a file. | If the target file is deleted, softlink is rendered useless. |
BY Best Interview Question ON 11 Apr 2019