CompTIA Linux+ Powered by LPI (LX0-103) — Question 31
Creating a hard link to an ordinary file returns an error. What could be the reason for this?
Answer options
- A. The source file is hidden.
- B. The source file is read-only.
- 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.
Correct answer: E
Explanation
The correct answer is E because hard links must reside on the same filesystem; attempting to create one across different filesystems will result in an error. Options A, B, C, and D do not prevent the creation of hard links and are therefore incorrect.