← 返回命令列表

Linux command

vgs 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

List

sudo vgs

Example

sudo vgs -a

Verbose

sudo vgs -v

Example

sudo vgs -o vg_name,vg_size,vg_free

Append

sudo vgs -o +field_name

No headings

sudo vgs --noheadings

Example

sudo vgs --separator =

说明

vgs displays information about volume groups in a configurable table format. It shows group names, physical volumes count, logical volumes count, sizes, and free space.

参数

-a, --all
Show all volume groups including incomplete ones
-v, --verbose
Increase verbosity and show additional details
-o, --options _fields_
Specify which fields to display
--noheadings
Suppress the heading line in output
--separator _char_
Use specified character as field separator
--units _units_
Display sizes in specified units

FAQ

What is the vgs command used for?

vgs displays information about volume groups in a configurable table format. It shows group names, physical volumes count, logical volumes count, sizes, and free space.

How do I run a basic vgs example?

Run `sudo vgs` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --all do in vgs?

Show all volume groups including incomplete ones