Forrest logo
back to the pvs tool

pvs:tldr:b467a

pvs: Display only specific fields.
$ pvs -o ${field_name_1},${field_name_2}
try on your machine

The command "pvs -o ${field_name_1},${field_name_2}" is used to display certain fields of information from the Physical Volume (PV) Summary in a logical volume management (LVM) system.

Here's a breakdown of each element in the command:

  • "pvs" is the command itself, which stands for "physical volume status." It is used to display information about the physical volumes in an LVM system.
  • "-o" is a flag that specifies the output format of the command.
  • "${field_name_1},${field_name_2}" is a placeholder that should be replaced with the actual field names you want to display. The field names refer to specific attributes or properties of the physical volumes.

For example, if you want to display the VG Name and Size fields for each physical volume, you would replace "${field_name_1},${field_name_2}" with "vg_name,size" like this: "pvs -o vg_name,size".

The output of the command will then show the values of the specified fields for each physical volume in the LVM system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pvs tool