Filesystem Utilities Flashcards

(25 cards)

1
Q

What do filesystem utilities allow?

A

Setup, inspection, repair, and resizing of Linux storage

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

Why are filesystem utilities useful?

A

For maintaining filesystem health and adapting storage needs

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

Name common filesystem utility commands.

A

df, du, fio, mkfs, fsck, xfs_repair, resize2fs, xfs_growfs

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

What does df do?

A

Displays used and available disk space

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

What does df stand for?

A

Disk Free

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

Command to show human-readable disk space?

A

df -h

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

What does du do?

A

Shows disk usage of files and directories

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

What does du stand for?

A

Disk Usage

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

Command for summarized human-readable disk usage?

A

du -sh /path

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

Why use du?

A

To identify which folders consume the most space

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

What does fio do?

A

Benchmarks read/write disk performance

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

What does fio stand for?

A

Flexible I/O Tester

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

Why use fio?

A

To simulate workloads and diagnose slow storage or evaluate new drives

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

What does mkfs do?

A

Creates a new filesystem on a partition or disk

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

Syntax for mkfs?

A

mkfs -t <type> <device></device></type>

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

Example of mkfs?

A

mkfs -t ext4 /dev/sdb1

17
Q

What does fsck do?

A

Verifies and repairs filesystem metadata

18
Q

When should fsck be used?

A

After power failures or crashes, only on unmounted filesystems

19
Q

Example of fsck?

A

fsck -fy /dev/sdb1

20
Q

What does xfs_repair do?

A

Checks and repairs XFS filesystem issues

21
Q

When is xfs_repair required?

A

If XFS wasn’t unmounted cleanly

22
Q

What does resize2fs do?

A

Grows or shrinks ext2, ext3, or ext4 filesystems

23
Q

What must be done before using resize2fs?

A

Resize the underlying partition first

24
Q

What does xfs_growfs do?

A

Grows XFS filesystems (cannot shrink)

25
Example of xfs_growfs?
xfs_growfs /mount/point