cheat.sheets:vgs
# vgs
# Display information about volume groups in concise form.
# Display all volume groups in a concise form
vgs
# Display specific volume group information
vgs [VolumeGroupName]
# Display volume groups with specific fields (e.g., VG name and size)
vgs --options vg_name,vg_size
# Display volume groups and filter results using a keyword (e.g., "root")
vgs | grep root
# Show volume group information with units in human-readable format
vgs --units h
# Display output in columns
vgs --separator :
# Show detailed help about the vgs command
vgs --help
# Display volume groups with additional information (e.g., tags, etc.)
vgs --options +tags
# Sort volume groups by size
vgs --sort vg_size
# Display volume groups in a specific format
vgs --reportformat basic
# Display volume group information in JSON format
vgs --reportformat json
tldr:vgs
# vgs
# Display information about volume groups.
# See also: `lvm`.
# More information: <https://man7.org/linux/man-pages/man8/vgs.8.html>.
# Display information about volume groups:
vgs
# Display all volume groups:
vgs -a
# Change default display to show more details:
vgs -v
# Display only specific fields:
vgs -o field_name_1,field_name_2
# Append field to default display:
vgs -o +field_name
# Suppress heading line:
vgs --noheadings
# Use separator to separate fields:
vgs --separator =
$
cheat.sh