File Systems Overview
- 32Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is a file from the operating system's perspective?
A file is a contiguous logical address space.
Or swipe the card
32 cards
What is a file from the operating system's perspective?
A file is a contiguous logical address space.
List five common file attributes.
Name, type, size, permissions, and timestamps (e.g., creation, modification).
What is a file type and how is it commonly indicated?
A file type indicates the kind of content (e.g., document, executable, image). It is often indicated by a file extension (e.g., .txt, .exe).
What is the purpose of a file API?
It provides a standard set of operations (e.g., create, open, read, write, close) so applications don't need to handle low-level storage details.
Why is it important to close files after use?
To free system resources and avoid exhausting the open-file table, which tracks all open files.
What is file locking?
A mechanism that prevents conflicts when multiple users access the same file. It can be exclusive or shared.
What is the difference between mandatory and advisory file locking?
Mandatory locking is enforced by the OS; advisory locking relies on cooperating applications to check locks.
Name four types of file structures.
Simple (e.g., text files), fixed-length records, variable-length records, and binary (complex) files.
What is sequential access?
Data is read in order from beginning to end; to reach a specific position, all preceding data must be passed.
What is direct access?
Data can be accessed directly at any position without scanning through preceding data.
What is indexed sequential access?
Combines an index that points to data blocks with a sequential underlying structure (e.g., tape).
Why are tape drives still used in large-scale systems?
They are cheap and provide large storage capacity for archival and backup purposes.
What is a single-level directory?
All files are stored in one flat directory, requiring unique file names.
What is a two-level directory?
Each user has their own directory, allowing duplicate file names across users.
What is a tree-structured directory?
Directories can contain files and subdirectories, forming a hierarchy. Paths are used to locate files.
What is an absolute path?
A path that starts from the root directory and includes all directories down to the file (e.g., /home/user/docs/file.txt).
What is a relative path?
A path that is defined relative to the current directory (e.g., ../docs/file.txt).
What is an acyclic-graph directory structure?
Allows multiple directory entries (links) to point to the same file or subdirectory, forming a directed acyclic graph.
How does the OS handle deletion of a shared file in an acyclic-graph structure?
It uses back pointers or reference counts: the file is only removed when no more references exist.
What is garbage collection in the context of directory structures?
A process that traverses the graph to find and clean up dangling links or unreferenced files.
What is mounting a file system?
Making a storage device accessible by attaching it to a mount point in the existing directory tree.
What is a mount point?
A directory in the file system where a new storage device is attached.
What is a distributed file system (DFS)?
A file system that allows files to be shared across a network, appearing as part of the local file system.
What is NFS?
Network File System – a protocol that allows a user to access files over a network as if they were local.
What are the three categories of file permissions in Unix/Linux?
Owner, group, and others (everyone else).
How are Unix file permissions represented numerically?
Using three octal digits: one for owner, one for group, one for others. Each digit is the sum of read (4), write (2), and execute (1).
What does the chmod 700 command do?
Sets permissions so that the owner has read, write, and execute (7), and group and others have no permissions (0).
How are directory permissions indicated in a Unix file listing?
By a 'd' at the beginning of the permission string (e.g., drwxr-xr-x).
What is the difference between Windows and Unix file permissions regarding modify and write?
Windows separates modify (including delete) from write; Unix combines them under write permission.
What is a file system volume?
A volume is a partition that has been formatted with a file system and is ready for use.
Why might you partition a disk into separate OS and data partitions?
To simplify backups (backup only data) and allow reinstallation of the OS without losing files.
What is record-level locking?
A locking method that locks only specific records within a file, allowing concurrent access to other records.

Ask anything
We've read this whole study set, so questions about it get the best answers.