Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation LFCS Exam - Topic 9 Question 77 Discussion

Posted by Jaclyn on May 29, 2024 at 07:56 PM

Creating a hard link to an ordinary file returns an error. What could be the reason for this?

Suggested Answer: B

Get Premium LFCS Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
32 comments · newest first
LU
Lucia 11 months ago
I didn't know that! Hard links can't cross filesystems?
OT
Otis 11 months ago
A hidden file shouldn't matter for hard links, right?
AA
Aaron 12 months ago
Wait, I thought read-only files could still have hard links?
LI
Ling 12 months ago
Totally agree, E is the right answer!
NI
Nina 1 year ago
It's because the source and target are on different filesystems.
MO
Mozell 1 year ago
I don’t think hidden files matter for hard links, so I doubt option A is correct. It seems like a trick answer to me.
MA
Marjory 1 year ago
I feel like I’ve seen a question about file permissions before, but I can’t recall if read-only files affect hard links. Could that be option B?
OL
Olen 1 year ago
I’m not sure, but I think a hard link can’t be created if the source file is already a hard link, which might relate to option D.
VA
Van 1 year ago
I remember something about hard links needing to be on the same filesystem, so maybe option E is the right answer?
AZ
Azzie 1 year ago
Ah, I've got it! The source file must already be a hard link. That would explain why creating a new hard link to it wouldn't work. Gotta pay attention to those details on the exam.
LO
Lorrine 1 year ago
I'm a bit confused on this one. I know hard links are supposed to work for regular files, so I'm not sure why it would return an error. I'll have to review the file properties more closely.
AL
Alayna 1 year ago
I've seen this issue before. I think it's got to be one of the options related to the file system, like the source and target being on different file systems. That would make sense why a hard link couldn't be created.
FR
Freida 1 year ago
Okay, let me see... I know hard links can only be created for regular files, not directories or special files. Maybe the source file has some special attribute that's preventing the hard link?
PA
Paris 1 year ago
Hmm, this seems like a tricky one. I'll need to think carefully about the different file properties that could cause an error when creating a hard link.
RO
Rosalind 1 year ago
On time delivery is crucial, but it's not the only factor. I'll need to balance timeliness with the other aspects of acceptance testing.
ST
Stephaine 1 year ago
Okay, I've got this. Measures of central tendency describe the typical or middle data point, which is what option A is asking about. I'm confident that's the right answer here.
DA
Danica 1 year ago
Wait, is this a trick question? I feel like the real answer is 'none of the above' and the real reason is because my dog ate my homework.
JA
Janella 1 year ago
Ah, I see. The key here is that hard links can only be created for ordinary files, not directories or special files. So D must be the correct answer.
LI
Lindsey 1 year ago
Haha, I bet the guy who wrote this question was just trying to mess with us. Hard links to shell scripts? Really?
EV
Evangelina 1 year ago
↳ replying to Lindsey
Yeah, hard links to shell scripts sounds strange.
EV
Evangelina 1 year ago
↳ replying to Lindsey
I think the source and the target are on different filesystems.
EV
Evangelina 1 year ago
↳ replying to Lindsey
Maybe the source file is already a hard link.
JE
Jennifer 2 years ago
Hmm, I was thinking it might be B. If the source file is read-only, that could prevent creating a hard link to it.
LU
Luke 1 year ago
↳ replying to Jennifer
E) The source and the target are on different filesystems.
CR
Craig 1 year ago
↳ replying to Jennifer
B) The source file is read-only.
VE
Veronika 1 year ago
↳ replying to Jennifer
A) The source file is hidden.
LE
Levi 2 years ago
I think the correct answer is E. Hard links can only be created within the same filesystem, so if the source and target are on different filesystems, it would return an error.
CH
Charlesetta 1 year ago
↳ replying to Levi
Yes, you are right. Hard links cannot be created across different filesystems.
CH
Charlesetta 2 years ago
↳ replying to Levi
I think the correct answer is E.
LI
Linwood 2 years ago
That's a good point, it could be the case. We should consider all possibilities.
JU
Juan 2 years ago
I disagree, I believe the source file being a shell script could be the reason.
LI
Linwood 2 years ago
I think the reason could be that the source file is read-only.
0/2000 characters

Save Cancel