03 - Operating Systems & Applications | 02. Filesystems Flashcards

1
Q

What is the filesystem?

A

The filesystem is the data structure used by the operating system to store and retrieve data.

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

What does the filesystem do?

A

This is a software abstraction that allows developers to manipulate data without having to be concerned with the minutiae of how each storage device works.

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

T/F | This data is organized into files that are units of storage used to describe a self-contained piece of data. Each file has a format depending on what that file contains. This is indicated by the file’s extension that follows the file’s name.

A

TRUE

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

What are some common file extensions?

A

.txt
.doc
.jpg

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

What is the file extension .txt a file type for?

A

.txt for text files

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

What is the file extension .doc a file type for?

A

.doc for Microsoft Word files

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

What is the file extension .jpg a file type for?

A

.jpg for image files encoded using the JPEG compression algorithm

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

What happens after files are created?

A

Files are organized into directories

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

What is a directory?

A

A directory is a data structure that contains references to files and other directories. They are typically organized in a hierarchical tree structure called a directory tree.

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

What are some examples of a directory tree?

A

User > Download > cat.jpg

User > Photos > Grand Canyon > familypicture.jpg

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

T/F | Not only is it expected that files will hold important data, but it is also assumed that a certain amount of metadata is kept to manage these files.

A

TRUE

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

What does the file control block hold?

A

The file control block holds all of this metadata for the file, including file permissions, owners, sizes, and create, modified, and access times.

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

Alongside bookkeeping metadata, files can also have attributes that indicate special behavior. What are some common attributes?

A
  1. Hidden
  2. Immutable
  3. Compressed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is an immutable attribute?

A

Immutable: Cannot be modified or deleted.

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

What is a hidden attribute?

A

Hidden: Cannot be viewed by default in file managers.

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

What is a compressed attribute?

A

Compressed: The file is in a compressed form to save space.

17
Q

Within the file permission are controls for what?

A

Three main actions that can be performed on a file.

18
Q

What are the three main actions that are performed on a file?

A
  1. Reading
  2. Writing
  3. Executing
19
Q
A