U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation LFCS Exam - Topic 3 Question 55 Discussion

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?
C) foo would be removed. bar would still exist but would be unusable.
A) foo and bar would both be removed.
B) foo would be removed while bar would remain accessible.
D) Both foo and bar would remain accessible.
E) The user is prompted whether bar should be removed, too.

Linux Foundation LFCS Exam - Topic 3 Question 55 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 55
Topic #: 3
[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?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Lashonda
7 months ago
Nope, only foo gets deleted, bar is fine!
upvoted 0 times
...
Mari
8 months ago
I thought both would be removed? This is confusing.
upvoted 0 times
...
Ena
8 months ago
Wait, are you sure? I thought bar would be unusable.
upvoted 0 times
...
Youlanda
8 months ago
Definitely B, that's how hard links work!
upvoted 0 times
...
Kassandra
8 months ago
Bar stays accessible after deleting foo.
upvoted 0 times
...
Barb
8 months ago
I’m leaning towards D, but I’m not confident. I just remember that hard links point to the same inode.
upvoted 0 times
...
Susana
8 months ago
I feel like I might be mixing this up with symbolic links. I thought hard links keep the file intact even if the original is deleted.
upvoted 0 times
...
Paris
8 months ago
I remember practicing a question like this, and I think the answer is B. Foo gets deleted, but bar remains.
upvoted 0 times
...
Yolando
8 months ago
I think if foo is deleted, bar should still be accessible since it's a hard link, right? But I'm not completely sure.
upvoted 0 times
...
Lilli
9 months ago
This looks like a straightforward Scrum question. I'll focus on identifying the Scrum principles and see which one doesn't align with the benefits for customers.
upvoted 0 times
...
Vivienne
9 months ago
The Service Portfolio manages the organization's service offerings, so I think the correct answer is Conceptual Service. That makes the most sense to me.
upvoted 0 times
...
Laurena
9 months ago
Public key cryptography was definitely used in this scenario, but I have a nagging feeling there's more to it than just that. I hope I'm not overthinking it.
upvoted 0 times
...
Kirk
9 months ago
I think WS-Addressing is related to message routing, but I'm a bit uncertain about that.
upvoted 0 times
...
Micaela
1 year ago
Haha, I bet the developers who came up with this question were having a hard time coming up with a good 'delete file with hard link' scenario. But I'm going with B, it makes the most sense to me.
upvoted 0 times
Larae
1 year ago
I agree, foo would be removed but bar would still be accessible.
upvoted 0 times
...
Thaddeus
1 year ago
Yeah, it seems like the most logical outcome.
upvoted 0 times
...
Jamie
1 year ago
I think B is the correct answer too.
upvoted 0 times
...
...
Tess
1 year ago
Hmm, I'm leaning towards D. Since a hard link is just another name for the same file, both foo and bar should remain accessible even if one is deleted.
upvoted 0 times
Gianna
1 year ago
So, it's safe to say that creating a hard link doesn't really create a separate copy of the file, just another way to access it.
upvoted 0 times
...
Beth
1 year ago
I agree, it's like having two different paths to the same file. Deleting one shouldn't affect the other.
upvoted 0 times
...
Arlyne
1 year ago
I think you're right, D does make sense. Both foo and bar should still be accessible.
upvoted 0 times
...
...
Ethan
1 year ago
I'm pretty sure the correct answer is C. The hard link would still exist, but it would be unusable since the actual file it points to is gone.
upvoted 0 times
...
Amie
1 year ago
I'm not sure about this one. Can someone explain why option B is the correct answer?
upvoted 0 times
...
Alpha
1 year ago
I agree with Gearldine. Since bar is a hard link to foo, it should still be accessible even after foo is deleted.
upvoted 0 times
...
Gearldine
1 year ago
I think the answer is B) foo would be removed while bar would remain accessible.
upvoted 0 times
...
Kati
1 year ago
I think the answer is B. Once you create a hard link, the file itself is accessible through multiple names, so deleting the original file won't affect the hard link.
upvoted 0 times
Deandrea
1 year ago
Exactly. Hard links provide multiple paths to the same data on the filesystem.
upvoted 0 times
...
Graham
1 year ago
So, even though foo is gone, bar will still be there for us to access.
upvoted 0 times
...
Lura
1 year ago
Yes, that's correct. The hard link will still point to the file's data even after the original file is deleted.
upvoted 0 times
...
Eileen
1 year ago
I think the answer is B. Once you create a hard link, the file itself is accessible through multiple names, so deleting the original file won't affect the hard link.
upvoted 0 times
...
...

Save Cancel