Forrest logo
back to the lvs tool

lvs:tldr:d2cbb

lvs: Append field to default display.
$ lvs -o +${field_name}
try on your machine

The command "lvs -o +${field_name}" is used in a Linux environment to display logical volumes (LVs) with specific information for a given field.

Here is a breakdown of the command:

  • "lvs" is the command-line utility used to acquire information about logical volumes in Linux.
  • "-o" is an option flag that specifies the output format. It is followed by "+${field_name}".
  • "+${field_name}" is used to mention the specific field that you want to display. "${field_name}" should be replaced with the desired field name.

For example, if you replace "${field_name}" with "LV_NAME" (logical volume name), the command "lvs -o +LV_NAME" will display the logical volumes along with their names.

By utilizing this command and specifying different field names, you can retrieve various information related to logical volumes such as their sizes, paths, UUIDs, etc.

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