← 返回命令列表

Linux command

lspci 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

lspci

Example

lspci -v

Example

lspci -k

Example

lspci -s 00:18.3

Example

lspci -vm

Example

lspci -nn

Example

lspci -t

说明

lspci displays information about PCI buses in the system and devices connected to them. It provides details about hardware, drivers, and capabilities of PCI devices.

参数

-v
Verbose output with device details
-vv
Very verbose output
-vvv
Maximum verbosity
-k
Show kernel drivers and available modules
-n
Show vendor/device codes as numbers only
-nn
Show both numbers and names
-m
Machine-readable output format
-mm
Machine-readable format for scripts
-t
Show as tree diagram
-s SLOT
Show only device in specified slot
-d VENDOR:DEVICE
Show only devices with specified IDs
-x
Hexadecimal dump of configuration space
-xxx
Full PCI configuration space (root only)
-D
Always show PCI domain numbers
-P
Show devices by bridge path
-A _METHOD_
Use specified PCI access method (see -A help for list)
-M
Bus mapping mode; thorough scan including misconfigured bridges (root only)
-q
Query central database for unknown devices
-i _FILE_
Use alternate PCI ID file

FAQ

What is the lspci command used for?

lspci displays information about PCI buses in the system and devices connected to them. It provides details about hardware, drivers, and capabilities of PCI devices.

How do I run a basic lspci example?

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

What does -v do in lspci?

Verbose output with device details