1/18
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is typically unnecessary on Linux due to its file systems and modern SSD use?
Defragmentation
Where are most Linux disk optimization utilities run from?
The terminal shell prompt
What permissions are usually needed to check storage statistics on Linux?
Standard user (no elevated privileges)
What does the df
command do in Linux?
Shows how much disk space is used and available on file systems
What option should be added to df
to make the output human-readable?
-h
What key columns are shown in the output of df -h
?
Filesystem, Size, Used, Available, Use%, Mounted on
What does /dev/vda5
represent in Linux?
The fifth partition of the first virtual disk device
What command is used to analyze disk usage within a specific directory structure?
du
What option is commonly used with du
for easier readability?
-h
What does du -h /home
do?
Displays space used by files and directories under /home
Why might du -h /
return errors when run as a regular user?
Insufficient permissions to access all directories
How do you run a du
command with elevated privileges?
Use sudo
, like sudo du -h /
What is the purpose of the fsck
command in Linux?
Checks the file system for errors
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
How can you find the file system type of a device?
Use df -T
What must you do before running fsck
on a mounted partition?
Unmount the partition using umount
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
)
What does fsck
do if it finds errors?
It attempts to fix them and warns if it can't
What three main Linux commands were demonstrated for disk optimization?
df, du, fsck