File Managment Flashcards

1
Q

What is a file?

A

A named colection of data stored on secondary storage.

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

Name the 6 attributes stored in a file’s metadata.

A

name of the file, Identifier of the file, location in storage, Size, Protection mode or permissions, time of access/modification/creation.

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

Describe Linux’s file system.

A

Everything is treated as a file, it uses an inode pointer system to describe the files location.

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

Name the 6 different file types in Linux.

A

Regular files, directories, special files, Pipes, Links, Symbolic files.

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

Describe the functionality of a directory

A

A directory is a table containing two columns, one with the file name and the second with the inode pointer of the file.

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

Describe the functionality of special files.

A

Associated with I/O devices, reading from the file gets an input and writing to the file gives the output.

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

Describe the functionality of Pipes.

A

Takes the output from a process and gives it as the input to another process.

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

Describe the functionality of Links.

A

This is a hard link and points to a file via its Inode. This will keep working even if the file is deleted or moved.

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

Describe the functionality of Symbolic files.

A

this is a soft link and points to a file name, this will stop working if the file is deleted or moved.

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

Why is Linux’s way of doing it good?

A

The structure makes it very easy for users to change and manipulate different functions only with knowledge of how text files work.

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

How are files allocated?

A

File allocation on discs is done in blocks, and each block is dynamically allocated.

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

How many direct pointers does the inode structure contain?

A

12

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

How Does an indirect pointer in the inode structure work?

A

If their aren’t enough direct pointers then then an indirect pointer will point to a block containing the pointers that point to the additional blocks used in file storage.

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

What are the advantages of the inode structure?

A

It is very quick to access small files in direct pointers, but indirect pointers allow storage of very large files.

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

Why is wear levelling used on an SSD?

A

To increase the lifetime of the SSD as each block can only be written to a finite number of times.

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

What are the two types of Wear Levelling?

A

Dynamic and Static

17
Q

How is Dynamic wear levelling implemented?

A

New data is written to the least used block, thereby avoiding wearing out certain blocks by writing to them over and over.

18
Q

How is Static wear levelling implemented?

A

New data is written to least used block as in dynamic, but also periodically moves data to least recently used block, avoiding cold data getting stuck.

19
Q

What is the disadvantage of Dynamic Wear Levelling?

A

Cold data is not moved, data can get stuck for a long time in a specific block.