What is the general purpose of hardware inventory commands?
To identify hardware components, provide info on internal/external devices, and determine system specs for management and troubleshooting.
Name the three main hardware inventory commands covered.
lspci, lsusb, lshw
What does the lspci command list?
All PCI-connected hardware devices (graphics cards, network adapters, sound cards, etc.).
What lspci option provides a structured, tree-view output?
-tv
In lspci -tv output, what does a “+-“ symbol indicate?
The hierarchy and connection between devices.
What does the lsusb command list?
All connected USB devices (keyboards, mice, flash drives, webcams, etc.).
In lsusb output, what does the “ID” field represent?
The vendor ID and product ID for the USB device.
In the ID 046d:c52b, what does 046d represent?
The manufacturer ID (e.g., Logitech).
In the ID 046d:c52b, what does c52b represent?
The product code for the specific device.
What is the primary use of the lsusb command?
Checking device recognition and troubleshooting USB issues.
What command provides a detailed report on ALL hardware components?
lshw (lists info from lspci/lsusb plus memory, CPU, storage, network)
What lshw option provides a truncated, summary view of the hardware?
-short
Why is sudo typically required for the lshw command?
To access detailed and complete hardware information that requires root privileges.
In lshw output, what does the “H/W path” column show?
The hardware hierarchy of the component.
In lshw output, what does the “Class” column do?
It categorizes the hardware by type (e.g., system, memory, processor, disk).
Which command would you use to troubleshoot a graphics card not being detected?
lspci (to see if it’s listed on the PCI bus)
Which command is best for verifying if the system recognizes a newly plugged-in USB printer?
lsusb
Which command gives the most comprehensive overview of the entire system’s hardware?
lshw