Week 11: File Systems Flashcards

1
Q

What is a file?

A

A collection of information managed by the operating system, such as machine code, data, documents, or multimedia.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What properties do files have?

A

Name, type, size, structure, and permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of file names?

A

To provide a symbolic, user-friendly way to access stored information without dealing with hardware details.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do naming conventions differ across systems?

A
  • UNIX: Initially 14 characters, now up to 255.
  • MS-DOS: 8-character name + 3-character extension.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are common file structures?

A
  • 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are examples of file types?

A

Regular files, directories, special files (character/block), and pipes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do file types differ across systems?

A

Some enforce types (e.g., .exe in MS-DOS), while others treat types as optional (e.g., .txt in UNIX).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the two main file access methods?

A
  • Sequential access: Read/write in order (e.g., magnetic tapes).
  • Random access: Read/write in any order (e.g., hard disks).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are common file attributes?

A

Owner, permissions, size, creation/modification/access times, and locking flags.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are some examples of file operations?

A
  • Basic: Create, delete, open, close, read, write.
  • Additional: Append, seek, get/set attributes, rename.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a directory?

A

A logical grouping of files, often implemented as a special type of file containing metadata about its contents.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a hierarchical directory system?

A

A tree-like structure where directories contain subdirectories, starting from a root directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are absolute path names?

A

Paths that start from the root directory (e.g., /usr/local/bin).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are relative path names?

A

Paths that start from the current working directory (e.g., bin/safecopy).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What special entries exist in hierarchical systems?

A

. refers to the current directory, and .. refers to the parent directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are hard links?

A

A hard link is a directory entry, created with the LINK system call, with a different name, but a pointer to the same disk blocks

17
Q

What are symbolic (soft) links?

A

A file of a special type which contains the path name (relative or absolute) of the file that is pointed to

18
Q

What are some examples of directory operations?

A

Basic: Create, delete, open, close, read.
Additional: Rename, link/unlink, file tree walk, get/set attributes, change working directory.