OS topic 14 – Files and directories Flashcards

1
Q

Files

Current operating systems treat files as a collection of a given number of bytes stored on secondary storage.
That is, they don’t concern themselves with the c________ of files – that is the job of the a__________ p____________ through which files are created and used.

A

contents
application programs

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

Filenames

Whenever a file is created, it needs to be given an identifying l_______ so that the operating system can keep track of it.

An operating system could do this by giving each file a u_______ number, but people prefer more readable names such as ‘January 2020 expenses’.

A

label
unique number

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

Directories

A file system needs to keep a list of the files it contains. Such a list is known as a d________.

It is important to realise that a directory is more than a list of filenames: directories also include some details about those files.

A

directory

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

Directories

All the files and subdirectories on one particular disk or other secondary storage device emerge from the master or top-level directory for that device. This is called the r_____ directory.

A

root

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

Absolute Path

An absolute path provides the c_______ and e________ location of a file or directory from the root directory of the file system.

A

complete and exact

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

Relative Path

A relative path specifies the location of a file or directory in relation to the current working directory.
It does not start from the r_______ directory; instead, it assumes a starting point, usually the directory you are currently in.

A

root directory

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

File Types

True or false?

Generally, operating systems treat all files identically: the OS can carry out the fundamental operations create, read, write, rename, delete and copy without caring what the file contains.

A

True

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

File Types

There is some information about a file that the OS does need to know.

Give some examples.

A

The file extension, i.e. if it is a .txt, .jpg”, .exe, etc.

associations, icons, security considerations, default actions, and metadata.

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

File Types

The OS needs to know about a file’s extension to:

Identify file types. Knowing the file extension helps the OS determine the f______ or structure of the file.
For example, a text file has a different format than an image file, and the OS needs to recognize these distinctions to perform a__________ actions.

A

format
appropriate

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

File Types

The OS needs to know about a file’s associations to:

Launch the correct a___________ when a user opens a file.
For instance, if you double-click on a file with a “.docx” extension, the OS needs to know that it’s a_________ with a word processing application (e.g., Microsoft Word) to open and edit the document.

A

application
associated with

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

File Types

The OS needs to know about a file’s icons to:

Display an appropriate i_____ for each file, making it easier for users to identify and interact with their files.

A

icon

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

File Types

The OS needs to know about a file’s security considerations to:

Enforce a________ c_______ and p__________ accurately.
For example, executable files (.exe) might require specific permissions to run, and the OS must manage these permissions accordingly.

A

access controls
permissions

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

File Types

The OS needs to know about a file’s default actions to:

Determine the default actions for each f____, enhancing user convenience and workflow.

A

file

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

File Types

The OS needs to know about a file’s metadata to:

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