What command would you use to get a list of PCI devices on a Linux system?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command used to get a list of PCI devices on a Linux system is lspci. This command is specifically designed to display information about all the PCI buses and the devices connected to them. When you run lspci, it provides a detailed overview of the hardware devices on the PCI bus, including graphics cards, network interfaces, and other peripherals.

In contrast, lsblk is used for listing block devices available on the system, such as hard drives and partitions, but does not provide information about PCI devices. Similarly, lsdev is a command that can show device information, but it is not a standard command in most Linux distributions and is less commonly used compared to lspci. Lastly, lsusb is focused on listing USB devices connected to the system, which also does not pertain to PCI devices.

Thus, lspci is the correct command because it serves the specific purpose of enumerating the PCI hardware present in the system, making it an essential tool for system administration and troubleshooting in Linux environments.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy