exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 91 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 91
Topic #: 1
[All LFCS Questions]

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?

  • A. foo and bar would both be removed.
  • B. foo would be removed while bar would remain accessible.
  • C. foo would be removed. bar would still exist but would be unusable.
  • D. Both foo and bar would remain accessible.
  • E. The user is prompted whether bar should be removed, too.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
9866666
5 months, 1 week ago
Selected Answer: B
The correct answer is B. foo would be removed while bar would remain accessible. Here's why: Hard links are multiple directory entries (names) that point to the same underlying data on the filesystem. Deleting one of the hard links (in this case, foo) only removes that specific name, not the underlying data. As long as at least one hard link exists (bar in this case), the data remains accessible. Therefore, even after deleting foo, the content is still accessible through the hard link bar.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...