commands

lspci — Inspect PCI devices

Lists PCI devices; -nn includes numeric IDs alongside names and -k reports driver information where available. Read only your authorized lab inventory. Use a fresh private workspace; No production workload is required.

Formal Syntax & Structure

linux syntaxlinux
lspci [OPTIONS]

Parameters & Attributes

NameTypeDescription
-nnoptionShow names and numeric IDs
-koptionShow kernel driver information

Return Value

exit status and output

Prints PCI device records and, with -k, available driver information. Successful listing is not proof that all devices are functional or that privileged details were visible; inspect diagnostics for failed access.

Working Example

Example Snippetlinux
lspci -nnk
Linux Reference