File Management Flashcards

1
Q

I-nodes are pointers to files. What exactly does that mean? What does it mean for it to be a pointer? Is it a pointer to an entire file?

A

I-nodes are addresses to disk blocks, not files.

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

What is fragmentation the result of?

A

Files being created and removed

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

Which sector of a hard disk does the Master Boot Record (MBR) belong to?

A

The first sector

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

What does the Master Boot Record do?

A

Identifies where the computer’s operating system is located in order to be booted into main memory.

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

What is a link in Unix file systems

A

A link is a pointer to a file

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

What is the difference between large block size and small block size in file systems in terms of wastage

A

Large blocks waste space, small blocks waster time.

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

Reducing disk arm motion improves OS performance, how do you reduce disk arm motion?

A

By putting blocks that likely to be accessed closer together, in sequence.

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

How do hard links work in respect to inode number?

A

Inode number is the same as the linked file.

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

How would you explain what a soft link is to someone who doesn’t know linux?

A

A soft link is like a shortcut in Windows OS. A pointer to another file.

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

Do files with soft links have different or same inode numbers as the file it is linking to?

A

Different

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

What differentiates a file linked with a hard link with the original file?

A

Different file name

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

If you delete the original file, how will data in the hard links with the same inode number be affected?

A

Not affected, data will still be there in the hard linked file.

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