Linux Essentials (010-160) — Question 74
What is true about links in a Linux file system?
Answer options
- A. A symbolic link can only point to a file and not to a directory.
- B. A hard link can only point to a directory and never to a file.
- C. When the target of the symbolic link is moved, the link is automatically updated.
- D. A symbolic link can point to a file on another file system.
- E. Only the root user can create hard links.
Correct answer: D
Explanation
The correct answer is D because symbolic links can reference files across different file systems. Option A is incorrect as symbolic links can point to both files and directories, while B is wrong since hard links can only point to files, not directories. Option C is false because when the target of a symbolic link is moved, the link does not update automatically, and E is incorrect as non-root users can also create hard links under certain conditions.