Linux command
pvs 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
List
sudo pvs
Example
sudo pvs -a
Verbose
sudo pvs -v
Example
sudo pvs -o pv_name,vg_name,pv_size
Append
sudo pvs -o +field_name
No headings
sudo pvs --noheadings
Example
sudo pvs --separator =
说明
pvs displays information about physical volumes in a configurable table format. It shows device names, volume groups, sizes, and free space for each physical volume.
参数
- -a, --all
- Show devices that are not physical volumes
- -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 pvs command used for?
pvs displays information about physical volumes in a configurable table format. It shows device names, volume groups, sizes, and free space for each physical volume.
How do I run a basic pvs example?
Run `sudo pvs` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --all do in pvs?
Show devices that are not physical volumes