lspci is a command on
Unix-like
A Unix-like (sometimes referred to as UN*X or *nix) operating system is one that behaves in a manner similar to a Unix system, although not necessarily conforming to or being certified to any version of the Single UNIX Specification. A Unix-li ...
operating systems that prints ("lists") detailed information about all
PCI
PCI may refer to:
Business and economics
* Payment card industry, businesses associated with debit, credit, and other payment cards
** Payment Card Industry Data Security Standard, a set of security requirements for credit card processors
* Prov ...
buses and
device
A device is usually a constructed tool. Device may also refer to:
Technology Computing
* Device, a colloquial term encompassing desktops, laptops, tablets, smartphones, etc.
* Device file, an interface of a device driver
* Peripheral, any devi ...
s in the system. It is based on a common portable library ''libpci'' which offers access to the
PCI configuration space
PCI configuration space is the underlying way that the Conventional PCI, PCI-X and PCI Express perform auto configuration of the cards inserted into their bus.
Overview
PCI devices have a set of registers referred to as ''configuration spac ...
on a variety of operating systems.
__TOC__
Example usage
Example output on a
Linux
Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, which i ...
system:
# lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. MDRaven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. MDFamily 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 PCIe GPP Bridge :000:01.7 PCI bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 PCIe GPP Bridge :000:08.0 Host bridge: Advanced Micro Devices, Inc. MDFamily 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
00:14.0 SMBus: Advanced Micro Devices, Inc. MDFCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. MDFCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. MDRaven/Raven2 Device 24: Function 7
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
02:00.0 Non-Volatile memory controller: Sandisk Corp PC SN520 NVMe SSD (rev 01)
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. MD/ATIRaven Ridge adeon Vega Series / Radeon Vega Mobile Series(rev c3)
03:00.1 Audio device: Advanced Micro Devices, Inc. MD/ATIRaven/Raven2/Fenghuang HDMI/DP Audio Controller
03:00.2 Encryption controller: Advanced Micro Devices, Inc. MDFamily 17h (Models 10h-1fh) Platform Security Processor
03:00.3 USB controller: Advanced Micro Devices, Inc. MDRaven USB 3.1
03:00.4 USB controller: Advanced Micro Devices, Inc. MDRaven USB 3.1
03:00.5 Multimedia controller: Advanced Micro Devices, Inc. MDRaven/Raven2/FireFlight/Renoir Audio Processor
03:00.6 Audio device: Advanced Micro Devices, Inc. MDFamily 17h (Models 10h-1fh) HD Audio Controller
03:00.7 Non-VGA unclassified device: Advanced Micro Devices, Inc. MDRaven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver
Using
lspci -v
,
lspci -vv
, or
lspci -vvv
will display increasingly verbose details for all devices.
-d ">vendor> ">device>/code> option specifies the vendor and device ID of the devices to display. Note that ":" can not be omitted, while the omitted
or
indicates "any value".
If many devices are shown as unknown (e.g. "Unknown device 2830 (rev 02)"), issuing the command update-pciids
will usually correct this.
lsusb
lsusb
is a similar command for USB buses and devices. To make use of all the features of this program, a system needs to use Linux kernel which supports th
/proc/bus/usb
interface (e.g., Linux kernel
The Linux kernel is a free and open-source, monolithic, modular, multitasking, Unix-like operating system kernel. It was originally authored in 1991 by Linus Torvalds for his i386-based PC, and it was soon adopted as the kernel for the GNU ...
2.3.15 or newer).
Example output on a Linux system:
# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 06cb:0081 Synaptics, Inc.
Bus 003 Device 003: ID 5986:2115 Acer, Inc Integrated Camera
Bus 003 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0bda:b023 Realtek Semiconductor Corp. RTL8822BE Bluetooth 4.2 Adapter
Bus 001 Device 002: ID 045e:07fd Microsoft Corp. Nano Transceiver 1.1
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
hwinfo
hwinfo
is for all the hardware. Hwinfo output reports for various computer models are collected in a public GitHub repository.
lshw
lshw
is a subset of what hwinfo presents.How to interpret lshw output
on Ezix.org; retrieved in October 2016
Other platforms
The equivalent command for FreeBSD
FreeBSD is a free and open-source Unix-like operating system descended from the Berkeley Software Distribution (BSD), which was based on Research Unix. The first version of FreeBSD was released in 1993. In 2005, FreeBSD was the most popular ...
is pciconf -l
. pciconf
can also perform other functions such as reading and writing PCI registers. For more information, see th
man page
Th
HWiNFO
tool, which is not related to the hwinfo
tool mentioned above, can be downloaded in binary form at no cost. It is claimed to be a "system information and diagnostics comprehensive hardware analysis, monitoring and reporting for Windows and DOS".
Similar commands
* dmesg — prints the message buffer of the kernel.
* uname
uname (short for ''unix name'') is a computer program in Unix and Unix-like computer operating systems that prints the name, version and other details about the current machine and the operating system running on it.
History
The uname system cal ...
— prints the name, version and other details about the current machine and the operating system.
* lsscsi — prints information about mass storage devices.
See also
* util-linux
is a standard package distributed by the Linux Kernel Organization for use as part of the Linux operating system. A fork, (with meaning "next generation"), was created when development stalled, but has been renamed back to , and is the off ...
* /sys
References
External links
* {{Official website, http://mj.ucw.cz/sw/pciutils
The PCI utilities home
The home of the pci.ids
file, with it
Online list of ID's
Online device driver check page that maps PCI Ids to Linux drivers
8 commands to check hardware information on Linux
Unix software
Hardware in Linux