Bird
0
0

What will be the output of the command lsblk -d -o NAME,SIZE if the system has two disks: /dev/sda (500G) and /dev/sdb (1T)?

medium📝 Command Output Q4 of 15
Linux CLI - Disk and Storage
What will be the output of the command lsblk -d -o NAME,SIZE if the system has two disks: /dev/sda (500G) and /dev/sdb (1T)?
ANAME SIZE sda 500M sdb 1G
BNAME SIZE sda 500G sdb 1T
CNAME SIZE sda1 500G sdb1 1T
DNAME SIZE sda 500G sdb 500G
Step-by-Step Solution
Solution:
  1. Step 1: Understand lsblk -d option

    The -d option shows only disks, not partitions.
  2. Step 2: Interpret output columns

    NAME shows disk names, SIZE shows disk sizes exactly as 500G and 1T.
  3. Final Answer:

    NAME SIZE sda 500G sdb 1T -> Option B
  4. Quick Check:

    lsblk -d shows disks only [OK]
Quick Trick: Use -d to list disks only, no partitions [OK]
Common Mistakes:
  • Expecting partitions instead of disks
  • Mixing up size units (G vs M)

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes