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

LPI 101-500 Exam - Topic 1 Question 125 Discussion

You are trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?
E) The source and the target are on different filesystems.
A) The source file is hidden.
B) The source file is read-only.
C) The source file is a shell script.
D) You do not own the source file.

LPI 101-500 Exam - Topic 1 Question 125 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 125
Topic #: 1
[All 101-500 Questions]

You are trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?

Show Suggested Answer Hide Answer
Suggested Answer: E

Contribute your Thoughts:

0/2000 characters
Margot
11 hours ago
Agreed, E makes sense. Hard links can't cross filesystems.
upvoted 0 times
...
Bobbye
6 days ago
I think it's E. Different filesystems cause issues.
upvoted 0 times
...
Annice
11 days ago
I feel like C is irrelevant. Shell scripts can link fine.
upvoted 0 times
...
Lizette
16 days ago
B is also not a problem. Read-only files can link.
upvoted 0 times
...
Lizbeth
21 days ago
Right, A is not an issue. It's about filesystem.
upvoted 0 times
...
Matt
26 days ago
A hidden file shouldn't stop linking, right?
upvoted 0 times
...
Shantay
1 month ago
True, D could be a factor too. Permissions matter.
upvoted 0 times
...
Tran
1 month ago
What about D? If you don't own it, can you link?
upvoted 0 times
...
Shawna
1 month ago
Agreed, E makes sense. Hard links need same filesystem.
upvoted 0 times
...
Ammie
2 months ago
I think E is the main reason. Different filesystems can't link.
upvoted 0 times
...
Launa
2 months ago
A and C don't affect hard links, just FYI.
upvoted 0 times
...
Salome
2 months ago
Wait, can you really not link hidden files?
upvoted 0 times
...
Hildegarde
2 months ago
D makes sense, ownership matters for hard links.
upvoted 0 times
...
Lettie
2 months ago
I thought read-only files could still be linked?
upvoted 0 times
...
Linwood
2 months ago
E is definitely a reason, can't link across filesystems.
upvoted 0 times
...
Rasheeda
3 months ago
I remember reading that hidden files don't affect linking, so I doubt option A is the cause. But I could be wrong!
upvoted 0 times
...
Maile
4 months ago
I practiced a question similar to this, and I think a read-only file shouldn't cause an issue. So, I’m leaning towards option E or D.
upvoted 0 times
...
Lorita
4 months ago
I'm not entirely sure, but I feel like ownership might play a role here. If I don't own the source file, maybe that's why ln fails?
upvoted 0 times
...
Rodrigo
5 months ago
I think the error could be related to the files being on different filesystems, like option E. I remember something about that in class.
upvoted 0 times
...

Save Cancel