Duedil Interview Question: Difference between a hardlink... | Glassdoor.co.in

Interview Question

Site Reliability Engineer Interview London, England (UK)

Difference between a hardlink and softlink in Linux file


Interview Answer

1 Answer


Softlink – creates a pointer to the file, similar to “create shortcut” in MS Windows
Hardlink – creates a mirror-copy of the file, shares the inode with the original file

Deleting the original file means that the softlink will point to nowhere, whereas the hardlink will preserve the file data

Interview Candidate on 05-Sep-2017

Add Answers or Comments

To comment on this, Sign In or Sign Up.