Question 41
MediumTwo hard links point to the same file. One is deleted. What happens to the file's data?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
Two hard links point to the same file. One is deleted. What happens to the file's data?
It remains, reachable through the other link
It is deleted
It becomes read-only
It moves to the trash
Sign up free to see the answer and a step-by-step explanation.
A symbolic link points to /home/a/notes.txt. The file is renamed to /home/a/n2.txt. What happens to the link?
It becomes dangling (broken)
It now points to n2.txt
It follows the file automatically
It is deleted automatically
Sign up free to see the answer and a step-by-step explanation.
Why can't hard links normally be made to directories in Unix?
It needs root access only
Directories have no inodes
Directories are too large
They could create cycles in the directory tree that confuse traversal and deletion
Sign up free to see the answer and a step-by-step explanation.
What does a journaling file system write to its journal before changing the file system?
The boot loader
The user's passwords
A copy of every file
A record of the intended changes, so that they can be replayed or undone after a crash
Sign up free to see the answer and a step-by-step explanation.
What is the FAT in the FAT file system?
A list of file names
A table with one entry per cluster linking each cluster to the next one of its file
A copy of the boot sector
The free-space bitmap
Sign up free to see the answer and a step-by-step explanation.
What is the purpose of the superblock in Unix-style file systems?
It stores key information about the whole file system, such as its size and block counts
It stores the root directory's files
It holds user passwords
It is the largest data block
Sign up free to see the answer and a step-by-step explanation.
What does the 'sticky bit' on a directory such as /tmp do?
Makes files permanent
Makes files executable
Hides files
Lets only a file's owner (or root) delete or rename it, even though everyone can write to the directory
Sign up free to see the answer and a step-by-step explanation.
A file of 25 KB is stored with 4 KB blocks using indexed allocation. How many data blocks does it use?
25
8
7
6
Sign up free to see the answer and a step-by-step explanation.
Which directory structure lets a file appear in more than one directory without copying?
Tree-structured directory without links
Acyclic-graph directory
Two-level directory
Single-level directory
Sign up free to see the answer and a step-by-step explanation.
What is a mount point?
The root of the boot disk
A directory where another file system is attached to the directory tree
A hidden file
A disk partition label
Sign up free to see the answer and a step-by-step explanation.