cheat.sheets:pvs
# pvs
# Display information about physical volumes in concise form.
# Display basic information about physical volumes
pvs
# Display verbose information about physical volumes, including details such as UUID
pvs -v
# Display physical volumes with specific columns: physical volume name, volume group name, and size
pvs --columns pv_name,vg_name,pv_size
# Display physical volumes in a human-readable format, converting size units
pvs --units h
# Show physical volumes sorted by size
pvs --sort pv_size
# Display information about physical volumes with additional device filter
pvs /dev/sdX1
# Display information about physical volumes with a header only once for better readability
pvs --noheadings
# Display physical volumes with size information in megabytes
pvs --units M
# Show physical volumes with a warning if any are using a missing data segment
pvs --segments
# Display the status of the physical volumes including allocatable and missing status
pvs -o +allocatable,missing
tldr:pvs
# pvs
# Display information about physical volumes.
# See also: `lvm`.
# More information: <https://man7.org/linux/man-pages/man8/pvs.8.html>.
# Display information about physical volumes:
pvs
# Display non-physical volumes:
pvs -a
# Change default display to show more details:
pvs -v
# Display only specific fields:
pvs -o field_name_1,field_name_2
# Append field to default display:
pvs -o +field_name
# Suppress heading line:
pvs --noheadings
# Use separator to separate fields:
pvs --separator special_character
$
cheat.sh