Error Message "bash: lspci: command not found" Is Displayed After the lspci Command Is Run
Symptom
When you run the lspci command, the system displays the error message "bash: lspci: command not found."
Possible Causes
The lspci tool has not been installed.
Solution
- Run the following command to query the installation package that provides the lspci command:
yum whatprovides */lspci
The command output is as follows:pciutils-3.5.1-3.el7.x86_64 : PCI bus related utilities Source: @anaconda/7.6 Matching source: File name: /usr/sbin/lspci
- Run the following command to install lspci:
yum install pciutils
- Run the lspci command. If the following information is displayed, lspci is available.
00:00.0 Host bridge: Intel Corporation Sky Lake-E DMI3 Registers (rev 04) 00:04.0 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04) 00:04.1 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04) 00:04.2 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04) 00:04.3 System peripheral: Intel Corporation Sky Lake-E CBDMA Registers (rev 04) ...