Bird
0
0

Which command is used to create an ext4 file system on a disk partition?

easy📝 Conceptual Q11 of 15
Linux CLI - Disk and Storage
Which command is used to create an ext4 file system on a disk partition?
Aformat /dev/sdX1
Bmkfs.xfs /dev/sdX1
Cmkfs.ext4 /dev/sdX1
Ddiskformat ext4 /dev/sdX1
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command for ext4 file system creation

    The command mkfs.ext4 is specifically designed to create ext4 file systems on a given partition.
  2. Step 2: Identify the correct usage with device name

    Using mkfs.ext4 /dev/sdX1 formats the partition /dev/sdX1 as ext4.
  3. Final Answer:

    mkfs.ext4 /dev/sdX1 -> Option C
  4. Quick Check:

    ext4 creation command = mkfs.ext4 [OK]
Quick Trick: ext4 uses mkfs.ext4 command to format partitions [OK]
Common Mistakes:
  • Confusing mkfs.xfs with mkfs.ext4
  • Using generic format commands not valid in Linux
  • Trying to use unsupported commands like diskformat

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes