0
0
Linux CLIscripting~20 mins

File system types (ext4, xfs) in Linux CLI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
File System Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
Identify the file system type of a mounted partition
You run the command df -T /home on a Linux system. What is the expected output format for the file system type column?
Linux CLI
df -T /home
AShows the file system size in the second column
BShows the mount point path in the second column
CShows the file system type like ext4 or xfs in the second column
DShows the disk usage percentage in the second column
Attempts:
2 left
💡 Hint
The -T option in df shows the file system type.
🧠 Conceptual
intermediate
1:30remaining
Difference between ext4 and xfs file systems
Which statement correctly describes a key difference between ext4 and xfs file systems?
Axfs is optimized for large files and parallel I/O, ext4 is more general-purpose
Bext4 supports journaling, but xfs does not
Cext4 cannot be resized while mounted, xfs can be resized online
Dxfs is the default file system for all Linux distributions
Attempts:
2 left
💡 Hint
Think about performance and typical use cases for each file system.
🔧 Debug
advanced
2:00remaining
Fix the error when creating an xfs file system
You run mkfs.xfs /dev/sdb1 but get an error: Device or resource busy. What is the most likely cause?
AThe partition is formatted with ext4 already
BThe partition /dev/sdb1 is currently mounted
CThe device /dev/sdb1 does not exist
DThe xfs tools are not installed
Attempts:
2 left
💡 Hint
Check if the device is in use before formatting.
🚀 Application
advanced
2:00remaining
Mount an ext4 file system with specific options
You want to mount an ext4 partition at /mnt/data with read-only access and no execution of binaries. Which mount command is correct?
Amount -o ro,noexec /dev/sdc1 /mnt/data
Bmount -t ext4 -o rw,exec /dev/sdc1 /mnt/data
Cmount -t xfs -o ro,noexec /dev/sdc1 /mnt/data
Dmount -t ext4 -o ro,noexec /dev/sdc1 /mnt/data
Attempts:
2 left
💡 Hint
Specify the file system type and options explicitly.
💻 Command Output
expert
2:30remaining
Output of xfs_info command on an xfs partition
What kind of information does the xfs_info /dev/sdd1 command provide?
ADetailed metadata about the xfs file system including block size and inode size
BCurrent disk usage statistics like free and used space
CList of files and directories on the partition
DPartition table layout of the disk
Attempts:
2 left
💡 Hint
Think about file system structure details, not usage or file listing.