What do filesystem utilities allow?
Setup, inspection, repair, and resizing of Linux storage
Why are filesystem utilities useful?
For maintaining filesystem health and adapting storage needs
Name common filesystem utility commands.
df, du, fio, mkfs, fsck, xfs_repair, resize2fs, xfs_growfs
What does df do?
Displays used and available disk space
What does df stand for?
Disk Free
Command to show human-readable disk space?
df -h
What does du do?
Shows disk usage of files and directories
What does du stand for?
Disk Usage
Command for summarized human-readable disk usage?
du -sh /path
Why use du?
To identify which folders consume the most space
What does fio do?
Benchmarks read/write disk performance
What does fio stand for?
Flexible I/O Tester
Why use fio?
To simulate workloads and diagnose slow storage or evaluate new drives
What does mkfs do?
Creates a new filesystem on a partition or disk
Syntax for mkfs?
mkfs -t <type> <device></device></type>
Example of mkfs?
mkfs -t ext4 /dev/sdb1
What does fsck do?
Verifies and repairs filesystem metadata
When should fsck be used?
After power failures or crashes, only on unmounted filesystems
Example of fsck?
fsck -fy /dev/sdb1
What does xfs_repair do?
Checks and repairs XFS filesystem issues
When is xfs_repair required?
If XFS wasn’t unmounted cleanly
What does resize2fs do?
Grows or shrinks ext2, ext3, or ext4 filesystems
What must be done before using resize2fs?
Resize the underlying partition first
What does xfs_growfs do?
Grows XFS filesystems (cannot shrink)