Which statement correctly describes hard links in a Unix-like file system?

Enhance your understanding with the System Software, Architecture, Memory and Storage Test. Study with flashcards and multiple choice questions. Each question offers hints and detailed explanations. Prepare effectively for your exam!

Multiple Choice

Which statement correctly describes hard links in a Unix-like file system?

Explanation:
Hard links are extra directory entries that point to the same inode as the original file. The inode holds the file’s metadata and the data blocks, so both names refer to the same underlying file data. Because they share the same inode, removing one name doesn’t delete the data until all hard links are removed, and permissions or changes to the file affect all links since there’s only one inode to reflect those attributes. Hard links cannot point to directories, and they cannot span different filesystems because inodes are local to a filesystem. That’s why describing them as referencing the same inode and being confined to a single filesystem without linking directories best captures how hard links work.

Hard links are extra directory entries that point to the same inode as the original file. The inode holds the file’s metadata and the data blocks, so both names refer to the same underlying file data. Because they share the same inode, removing one name doesn’t delete the data until all hard links are removed, and permissions or changes to the file affect all links since there’s only one inode to reflect those attributes. Hard links cannot point to directories, and they cannot span different filesystems because inodes are local to a filesystem.

That’s why describing them as referencing the same inode and being confined to a single filesystem without linking directories best captures how hard links work.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy