Week 11: File Systems Flashcards
What is a file?
A collection of information managed by the operating system, such as machine code, data, documents, or multimedia.
What properties do files have?
Name, type, size, structure, and permissions.
What is the purpose of file names?
To provide a symbolic, user-friendly way to access stored information without dealing with hardware details.
How do naming conventions differ across systems?
- UNIX: Initially 14 characters, now up to 255.
- MS-DOS: 8-character name + 3-character extension.
What are common file structures?
- Unstructured bytes: No fixed format (e.g., UNIX, MS-DOS).
- Fixed-length records: Structured as records, with read/write restricted to whole records.
- Special structures: Database key-index files or Apple Macintosh resource/data forks.
What are examples of file types?
Regular files, directories, special files (character/block), and pipes.
How do file types differ across systems?
Some enforce types (e.g., .exe in MS-DOS), while others treat types as optional (e.g., .txt in UNIX).
What are the two main file access methods?
- Sequential access: Read/write in order (e.g., magnetic tapes).
- Random access: Read/write in any order (e.g., hard disks).
What are common file attributes?
Owner, permissions, size, creation/modification/access times, and locking flags.
What are some examples of file operations?
- Basic: Create, delete, open, close, read, write.
- Additional: Append, seek, get/set attributes, rename.
What is a directory?
A logical grouping of files, often implemented as a special type of file containing metadata about its contents.
What is a hierarchical directory system?
A tree-like structure where directories contain subdirectories, starting from a root directory.
What are absolute path names?
Paths that start from the root directory (e.g., /usr/local/bin).
What are relative path names?
Paths that start from the current working directory (e.g., bin/safecopy).
What special entries exist in hierarchical systems?
. refers to the current directory, and .. refers to the parent directory.