Which statement about hard links and symbolic links is true?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

Which statement about hard links and symbolic links is true?

Explanation:
The concept tested is how hard links and symbolic links relate to inodes and filesystem structure. A hard link is another directory entry that points directly to the same inode as the original file, so both names refer to the exact same underlying data. Because they share the same inode, removing one name does not delete the data until all links are removed. A symbolic link is a separate small file that contains a path to the target. It has its own inode and does not share the target’s inode; it simply points to the target by name, and can become dangling if the target is moved or deleted. Given that, the statement about hard links sharing the same inode as the target is correct. A symbolic link uses its own inode, hard links generally cannot be created to directories, and symbolic links are not restricted to the same filesystem—they can point across filesystem boundaries.

The concept tested is how hard links and symbolic links relate to inodes and filesystem structure. A hard link is another directory entry that points directly to the same inode as the original file, so both names refer to the exact same underlying data. Because they share the same inode, removing one name does not delete the data until all links are removed.

A symbolic link is a separate small file that contains a path to the target. It has its own inode and does not share the target’s inode; it simply points to the target by name, and can become dangling if the target is moved or deleted.

Given that, the statement about hard links sharing the same inode as the target is correct. A symbolic link uses its own inode, hard links generally cannot be created to directories, and symbolic links are not restricted to the same filesystem—they can point across filesystem boundaries.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy