Forrest logo
back to the vgs tool

vgs:tldr:f4af0

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

The command "vgs" is used to display information about Volume Groups (VGs) on a Linux system. The "-o" option allows you to specify the fields or attributes that you want to display for each VG.

In this particular example, the "${field_name_1}" and "${field_name_2}" are placeholders for the actual field names that you want to include in the output. You need to replace these placeholders with the specific field names you desire. For example, if you want to display the "Name" and "Size" fields of the VGs, you would use the command:

vgs -o Name,Size

This will provide you with a list of VGs on your system, showing the names and sizes of each VG in the output.

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 vgs tool