CompTIA Linux+ Powered by LPI (LX0-103) — Question 20

After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?

Answer options

Correct answer: B

Explanation

When a hard link is created, both the original file and the hard link point to the same inode. If the original file foo is deleted, the link bar remains accessible because it still points to the same inode. The other options are incorrect because they either suggest that both files are deleted or that the hard link becomes unusable, which does not happen with hard links.