nerdexam
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)
  • B
    87% (20)
  • C
    4% (1)
  • D
    4% (1)
  • E
    4% (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.

Full 101-500 Practice