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 9 Question 77 Discussion

Creating a hard link to an ordinary file returns an error. What could be the reason for this?
B) The source file is read-only.
A) The source file is hidden.
C) The source file is a shell script.
D) The source file is already a hard link.
E) The source and the target are on different filesystems.

Linux Foundation LFCS Exam - Topic 9 Question 77 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 77
Topic #: 9
[All LFCS Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Lucia
7 months ago
I didn't know that! Hard links can't cross filesystems?
upvoted 0 times
...
Otis
7 months ago
A hidden file shouldn't matter for hard links, right?
upvoted 0 times
...
Aaron
7 months ago
Wait, I thought read-only files could still have hard links?
upvoted 0 times
...
Ling
7 months ago
Totally agree, E is the right answer!
upvoted 0 times
...
Nina
8 months ago
It's because the source and target are on different filesystems.
upvoted 0 times
...
Mozell
8 months 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.
upvoted 0 times
...
Marjory
8 months 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?
upvoted 0 times
...
Olen
8 months 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.
upvoted 0 times
...
Van
8 months ago
I remember something about hard links needing to be on the same filesystem, so maybe option E is the right answer?
upvoted 0 times
...
Azzie
8 months 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.
upvoted 0 times
...
Lorrine
8 months 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.
upvoted 0 times
...
Alayna
8 months 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.
upvoted 0 times
...
Freida
8 months 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?
upvoted 0 times
...
Paris
8 months 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.
upvoted 0 times
...
Rosalind
9 months 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.
upvoted 0 times
...
Stephaine
9 months 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.
upvoted 0 times
...
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.
upvoted 0 times
...
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.
upvoted 0 times
...
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?
upvoted 0 times
Evangelina
1 year ago
Yeah, hard links to shell scripts sounds strange.
upvoted 0 times
...
Evangelina
1 year ago
I think the source and the target are on different filesystems.
upvoted 0 times
...
Evangelina
1 year ago
Maybe the source file is already a hard link.
upvoted 0 times
...
...
Jennifer
1 year 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.
upvoted 0 times
Luke
1 year ago
E) The source and the target are on different filesystems.
upvoted 0 times
...
Craig
1 year ago
B) The source file is read-only.
upvoted 0 times
...
Veronika
1 year ago
A) The source file is hidden.
upvoted 0 times
...
...
Levi
1 year 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.
upvoted 0 times
Charlesetta
1 year ago
Yes, you are right. Hard links cannot be created across different filesystems.
upvoted 0 times
...
Charlesetta
1 year ago
I think the correct answer is E.
upvoted 0 times
...
...
Linwood
1 year ago
That's a good point, it could be the case. We should consider all possibilities.
upvoted 0 times
...
Juan
1 year ago
I disagree, I believe the source file being a shell script could be the reason.
upvoted 0 times
...
Linwood
1 year ago
I think the reason could be that the source file is read-only.
upvoted 0 times
...

Save Cancel