Skybinary

View Categories

1.1.6 How to List Linux hardware info – Commands & Tools

2 min read

Listing Hardware Info in Linux #

Linux provides several command-line tools to inspect hardware details, including PCI devices, USB devices, and system BIOS/motherboard information. Below are the key commands:


1. lspci – List PCI Devices #

Displays PCI (Peripheral Component Interconnect) devices (GPUs, network cards, storage controllers, etc.).

Basic Usage #

lspci

Example Output:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08)  
01:00.0 VGA compatible controller: NVIDIA Corporation GA106 [GeForce RTX 3060] (rev a1)  
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)  

Useful Options #

CommandDescription
lspci -vDetailed info (drivers, kernel modules)
lspci -vvVery verbose (IRQs, capabilities)
lspci -kShow kernel driver in use
lspci -nnShow vendor & device IDs (e.g., [10de:2504] for NVIDIA)

2. lsusb – List USB Devices #

Lists USB (Universal Serial Bus) devices (keyboards, mice, storage, etc.).

Basic Usage #

lsusb

Example Output:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  
Bus 001 Device 004: ID 046d:c08b Logitech, Inc. G502 SE HERO Gaming Mouse  
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub  

Useful Options #

CommandDescription
lsusb -vDetailed USB device info
lsusb -tShow USB device tree
lsusb -s 001:003Show specific device (Bus 001, Device 003)

3. dmidecode – DMI (SMBIOS) Hardware Info #

Extracts BIOS, motherboard, RAM, CPU, and chassis details from the DMI (Desktop Management Interface) table.

Basic Usage (Requires sudo) #

sudo dmidecode

Example Output (Partial):

Handle 0x0002, DMI type 2, 15 bytes  
Base Board Information  
	Manufacturer: ASUSTeK COMPUTER INC.  
	Product Name: ROG STRIX B550-F GAMING  
	Version: Rev X.0x  

Filtering Specific Info #

CommandDescription
sudo dmidecode -t biosBIOS information
sudo dmidecode -t systemSystem (manufacturer, model)
sudo dmidecode -t baseboardMotherboard details
sudo dmidecode -t memoryRAM slots & details
sudo dmidecode -t processorCPU information

Comparison of Tools #

ToolPurposeRequires sudo?
lspciPCI devices (GPU, NIC, SATA)No
lsusbUSB devices (keyboard, flash drives)No
dmidecodeBIOS, motherboard, RAM, CPUYes

Additional Hardware Info Commands #

CommandDescription
lscpuCPU architecture & cores
lsblkBlock devices (disks, partitions)
hwinfo --shortComprehensive hardware summary
inxi -FxzFull system overview (requires inxi package)

Example Workflow #

  1. Check GPU & Network Card:bashlspci | grep -E “VGA|Ethernet”
  2. List All USB Devices:bashlsusb -v
  3. Get RAM & Motherboard Info:bashsudo dmidecode -t memory sudo dmidecode -t baseboard

Conclusion #

  • lspci → PCI devices (GPU, NIC, storage controllers).
  • lsusb → USB devices (keyboard, mouse, flash drives).
  • dmidecode → BIOS, motherboard, RAM, CPU (requires sudo).

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top