LPI
101-500 · Question #46
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?
The correct answer is B. foo would be removed while bar would remain accessible. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Devices, Linux Filesystems, Filesystem Hierarchy Standard
Question
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?
Options
- Afoo and bar would both be removed.
- Bfoo would be removed while bar would remain accessible.
- Cfoo would be removed. bar would still exist but would be unusable.
- DBoth foo and bar would remain accessible.
- EThe user is prompted whether bar should be removed, too.
How the community answered
(23 responses)- B87% (20)
- C4% (1)
- D4% (1)
- E4% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#hard links#inodes#reference counts#file deletion
Community Discussion
No community discussion yet for this question.