System Management

An administrator wants a compact summary of all logical volumes, one line per volume, showing each volume's name, volume group, attributes and size. Which command provides it?

Show the answer

Correct answerC. lvs

AWhy not this: lvdisplay prints a detailed multi-line report for each logical volume, not a one-line summary.

BWhy not this: vgs prints one line per volume group, not per logical volume.

CWhy this is right: Lvs prints one line per logical volume with columns such as LV, VG, Attr and LSize.

DWhy not this: pvs prints one line per physical volume, not per logical volume.

lvs gives a compact tabular summary, with columns such as LV, VG, attributes and size. lvdisplay gives the longer report with fields such as LV Path, LV UUID, status and current extents, so the idea that lvs is the more detailed command is wrong.