Optimize Disks in Linux 1.2

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

What is typically unnecessary on Linux due to its file systems and modern SSD use?

Defragmentation

2
New cards

Where are most Linux disk optimization utilities run from?

The terminal shell prompt

3
New cards

What permissions are usually needed to check storage statistics on Linux?

Standard user (no elevated privileges)

4
New cards

What does the df command do in Linux?

Shows how much disk space is used and available on file systems

5
New cards

What option should be added to df to make the output human-readable?

-h

6
New cards

What key columns are shown in the output of df -h?

Filesystem, Size, Used, Available, Use%, Mounted on

7
New cards

What does /dev/vda5 represent in Linux?

The fifth partition of the first virtual disk device

8
New cards

What command is used to analyze disk usage within a specific directory structure?

du

9
New cards

What option is commonly used with du for easier readability?

-h

10
New cards

What does du -h /home do?

Displays space used by files and directories under /home

11
New cards

Why might du -h / return errors when run as a regular user?

Insufficient permissions to access all directories

12
New cards

How do you run a du command with elevated privileges?

Use sudo, like sudo du -h /

13
New cards

What is the purpose of the fsck command in Linux?

Checks the file system for errors

14
New cards

Why is it important to know the file system type before using fsck?

Running fsck on incompatible file systems (e.g., btrfs) may cause issues

15
New cards

How can you find the file system type of a device?

Use df -T

16
New cards

What must you do before running fsck on a mounted partition?

Unmount the partition using umount

17
New cards

How do you run a file system check on a device with fsck?

Type fsck followed by the device name (e.g., fsck /dev/vdb1)

18
New cards

What does fsck do if it finds errors?

It attempts to fix them and warns if it can't

19
New cards

What three main Linux commands were demonstrated for disk optimization?

df, du, fsck