Linux lspci Guide - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Linux lspci Guide
Complete beginner-friendly guide to lspci on Linux, covering Arch Linux, CachyOS, and other distributions including listing PCI devices, hardware information, and device detection.
Table of Contents
Understanding lspci
What is lspci?
lspci lists PCI devices.
Uses:
- List PCI devices: Show PCI/PCIe devices
- Hardware information: Get device details
- Hardware detection: Detect hardware
- Troubleshooting: Troubleshoot hardware
Why it matters:
- Hardware detection: See PCI devices
- Troubleshooting: Debug hardware problems
- Device management: Manage hardware
lspci Installation
Install lspci
Arch/CachyOS:
# Install pciutils
sudo pacman -S pciutils
Debian/Ubuntu:
sudo apt install pciutils
Fedora:
sudo dnf install pciutils
lspci Basics
List Devices
Basic usage:
# List all PCI devices
lspci
# Shows device list
Verbose Output
Detailed information:
# Verbose output
lspci -v
# -v = verbose (detailed info)
Device Information
Kernel Drivers
Show drivers:
# Show kernel drivers
lspci -k
# -k = kernel drivers
Tree View
Hierarchical view:
# Tree format
lspci -t
# Shows PCI bus tree
Troubleshooting
lspci Not Found
Check installation:
# Check lspci
which lspci
# Install if missing
sudo pacman -S pciutils
Summary
This guide covered lspci usage, PCI device listing, and hardware detection for Arch Linux, CachyOS, and other distributions.
Next Steps
- lsusb Guide - List USB devices
- Hardware Detection - Hardware detection
- lspci Documentation:
man lspci
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.