The current working directory is /home/lee. With no symbolic links here, where does notes/report.txt resolve?
- /notes/report.txt
- /home/notes/report.txt
- /home/lee/notes/report.txt
In the taught inode-based model, what does a directory entry store?
- The file's block list and permission bits
- A filename and a reference to its record
- The file's owner, size and complete contents
Two hard-link names for a regular file on the same file system refer to the same file record.
Circle one: True False
Why can unlinking a large file take less time than writing its contents, without being guaranteed instant?
- It writes zeros over every content block before freeing storage
- It discards contents while leaving every directory entry unchanged
- It updates names and metadata without rewriting all data
After chmod 600 myfile.txt on a regular file, which permissions do the group and other mode fields grant?
- None: both fields contain ---
- Read: both fields contain r--
- Read and write: both fields contain rw-
What do the three groups after the leading dash in -rw-r--r-- represent?
- Owner, group, other; each has read/write/execute slots
- Read, write, execute; each has owner/group/other slots
- Other, group, owner; each has read/write/execute slots
plan.txt and saved.txt are hard links to one regular file. You successfully unlink plan.txt while saved.txt remains. What follows?
- saved.txt still names the same record and contents
- saved.txt now names an independent copy with a new record
- saved.txt becomes unusable because the first name was removed
report.txt maps to inode 42. Inode 42 lists data blocks 12 and 19. How are the file's bytes found in this model?
- Read blocks 42 and 19, treating 12 as the file's inode
- Read inode 42, then its listed data blocks 12 and 19
- Read inode 12, then its listed data blocks 19 and 42