Bird
0
0

Which of the following is the correct syntax to list all block devices with detailed information?

easy📝 Syntax Q3 of 15
Linux CLI - Disk and Storage
Which of the following is the correct syntax to list all block devices with detailed information?
Alsblk -o NAME,SIZE,TYPE,MOUNTPOINT
Blsblk -a
Clsblk -f
Dlsblk -l
Step-by-Step Solution
Solution:
  1. Step 1: Understand lsblk options

    -o option lets you specify columns like NAME, SIZE, TYPE, MOUNTPOINT for detailed output.
  2. Step 2: Check other options

    -a shows all devices including empty, -l lists in list format, -f shows filesystem info but not detailed columns.
  3. Final Answer:

    lsblk -o NAME,SIZE,TYPE,MOUNTPOINT -> Option A
  4. Quick Check:

    lsblk -o = custom columns [OK]
Quick Trick: Use lsblk -o to customize output columns [OK]
Common Mistakes:
  • Using -a to get detailed info instead of -o
  • Confusing -f with detailed columns

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes