![Forrest logo](/images/logo.png)
lvs:tldr:804df
The "lvs" command is used to display information about Logical Volumes (LVs) in a Linux system. Logical Volumes are partitions that are created within Volume Groups (VGs) using the Logical Volume Manager (LVM) technology.
When you run the "lvs" command without any options or arguments, it provides a summary of all the available LVs in the system, including their names, sizes, and current status. This summary output typically includes information such as the LV name, VG name (to which the LV belongs), LV size, LV UUID, LV status (e.g., active or inactive), number of LV segments, and more.
The "lvs" command also supports various options and filters to narrow down or customize the output. Some commonly used options include:
- "-a" or "--all": This option shows all LVs, including inactive ones.
- "-o" or "--options": This option allows you to specify the specific columns you want to display in the output.
- "-S" or "--select": This option allows you to filter the output based on specific conditions. For example, you can filter LVs based on their size, status, or other attributes.
- "-v" or "--verbose": This option provides more detailed information about the LVs, including the LV layout, LV origin (if any), and more.
Overall, the "lvs" command is a handy tool to get an overview of the logical volumes present in a Linux system and their associated properties.