Explain the difference between a hard link and a symbolic (soft) link. What happens to the file if the original link is deleted in each case?
Last updated
A hard link is another directory entry pointing to the same inode. All links are equal, and deleting one only decrements the link count, so data survives until it reaches zero.
A symbolic (soft) link is a separate file storing a path to the target, resolved at access time. Deleting the target leaves a dangling link that fails when used.
Hard links cannot cross file systems or (typically) link directories. Symlinks can do both.
- https://growthequityinterviewguide.com/firms/b-capital
- https://www.interviewbit.com/sre-interview-questions/
- https://medium.com/@avinashkumar808482/operating-system-interview-questions-2026-0db6b4674980
- https://lmskkhsou.in/eservices/e-Resources/Resources/NEP%20Syllabus%202024/core/BCA_Syllabus.pdf
- https://www.reddit.com/r/cscareeradvice/new/
- https://www.reddit.com/r/macbook/comments/1jg7fl6/24gb_ram_enough_for_software_engineering/
- https://www.reddit.com/r/infosys/comments/1t71add/anyone_received_round_2_mails/
- https://www.reddit.com/r/cscareeradvice/best/
- https://www.reddit.com/r/LeetcodeChallenge/
- https://www.reddit.com/r/infosys/comments/1t71i55/infosys_specialist_programmer_april_26_1st_round/
- https://www.reddit.com/r/programming/comments/1hqo19u/static_search_trees_40x_faster_than_binary_search/