Questions: File System Concepts

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A file /home/alice/report.txt is deleted. Which statement most accurately describes what happens to the file's data?

AThe data is immediately erased from disk
BThe directory entry is removed; the data persists until the OS reclaims the blocks
CThe inode is deleted, but the data blocks remain indefinitely
DNothing happens until the file system is unmounted
Question 2 Multiple Choice

Files /home/alice/notes.txt and /home/bob/backup.txt are hard links to the same inode. Alice deletes her copy. What happens to Bob's file?

ABoth files are deleted because they share the same inode
BBob's file is deleted because Alice's was the original link
CBob's file still works; the inode and data persist because one link remains
DThe data is copied to Bob's path before Alice's link is removed
Question 3 True / False

A file's name is stored in the inode alongside its permissions, size, and timestamps.

TTrue
FFalse
Question 4 True / False

On a Unix file system, a single file can be accessed through multiple different pathnames simultaneously.

TTrue
FFalse
Question 5 Short Answer

Why is the separation between a file's name (stored in a directory entry) and its metadata and data (stored in an inode) architecturally significant? Give one concrete consequence of this design.

Think about your answer, then reveal below.