Inodes Flashcards

(18 cards)

1
Q

What do inodes store?

A

Metadata for files in a Linux filesystem

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

What metadata is stored in an inode?

A

Ownership, permissions, and location on disk

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

Do inodes store file names or contents?

A

No

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

What is an inode in simple terms?

A

An ID card for each file, directory, or object in the filesystem

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

Does every file require an inode?

A

Yes, regardless of file size

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

What are directories in relation to inodes?

A

Special files that map filenames to inode numbers

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

Does each directory require its own inode?

A

Yes

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

When does inode exhaustion occur?

A

When inode limit is reached before disk space is full

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

What happens during inode exhaustion?

A

Prevents creation of new files despite available storage space

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

How to monitor inode usage?

A

Use df -i to display inode usage statistics

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

What does df -i output include?

A

Inodes, Iused, Ifree, IUse%, Mounted on

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

When are inodes allocated?

A

During filesystem creation

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

Example command to create filesystem and allocate inodes?

A

mkfs -t ext4 /dev/sdb1

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

Why customize inode allocation?

A

For large numbers of small files

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

How are files and directories tied to inodes?

A

Through inode numbers

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

What do hard links do?

A

Point multiple filenames to the same inode

17
Q

Command to display inode numbers?

18
Q

Example of hard link sharing inode?

A

example.txt and example-hardlink.txt share the same inode number