Services and User Management
An administrator runs 'ln /mnt/data/notes.txt /home/user/notes.txt' and receives 'Invalid cross-device link'. /mnt/data and /home are on separate filesystems. Which action creates a working link?
Show the answer
Correct answerC. Use ln -s, because a symbolic link can point across filesystems.
A hard link must reside on the same filesystem as its target because inode numbers are unique only per filesystem. A symbolic link stores a path, so it can cross filesystems. The -f option only replaces existing destinations and cannot override this limit.