CompTIA Linux+ (XK0-005) — Question 66
A Linux administrator needs to obtain a list of all volumes that are part of a volume group. Which of the following commands should the administrator use to accomplish this task?
Answer options
- A. vgs
- B. lvs
- C. fdisk -1
- D. pvs
Correct answer: B
Explanation
The correct command is 'lvs', which lists all logical volumes in a volume group. 'vgs' displays information about volume groups, 'fdisk -1' is incorrect as it is a typo for 'fdisk -l', which lists disk partitions, and 'pvs' shows information about physical volumes, not logical ones.