Bird
0
0

Which of the following is the correct syntax to create an XFS file system on /dev/sdb1?

easy📝 Syntax Q12 of 15
Linux CLI - Disk and Storage
Which of the following is the correct syntax to create an XFS file system on /dev/sdb1?
Amkfs.ext4 /dev/sdb1
Bmkfs.xfs /dev/sdb1
Cmkfs.xfs -t xfs /dev/sdb1
Dformat xfs /dev/sdb1
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command for XFS file system creation

    The command mkfs.xfs is the standard way to create an XFS file system on a partition.
  2. Step 2: Confirm the correct device usage

    Using mkfs.xfs /dev/sdb1 formats the partition /dev/sdb1 as XFS.
  3. Final Answer:

    mkfs.xfs /dev/sdb1 -> Option B
  4. Quick Check:

    XFS creation command = mkfs.xfs [OK]
Quick Trick: Use mkfs.xfs for XFS file system creation [OK]
Common Mistakes:
  • Using mkfs.ext4 instead of mkfs.xfs
  • Trying mkfs.xfs -t xfs which is invalid syntax
  • Using Windows-like format commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes