lshw (Hardware Lister) is a small tool that provides detailed information on the hardware configuration of the machine. It can report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or EFI (IA-64) systems and on some PowerPC machines (PowerMac G4 is known to work).
USE flags for sys-apps/lshw Hardware Lister
emerge --ask sys-apps/lshw
Hardware Lister (lshw) - B.02.17 usage: lshw [-format] [-options ...] lshw -version -version print program version (B.02.17) format can be -html output hardware tree as HTML -xml output hardware tree as XML -short output hardware paths -businfo output bus information options can be -class CLASS only show a certain class of hardware -C CLASS same as '-class CLASS' -c CLASS same as '-class CLASS' -disable TEST disable a test (like pci, isapnp, cpuid, etc. ) -enable TEST enable a test (like pci, isapnp, cpuid, etc. ) -quiet don't display status -sanitize sanitize output (remove sensitive information like serial numbers, etc.) -numeric output numeric IDs (for PCI, USB, etc.)
Launch the X11 GUI
Enables interaction with lshw's graphical user interface, presenting a comprehensive and interactive view of hardware components.
This specific X11 GUI feature requires the appropriate useflag gtk to be enabled.
Generate full information report about all detected hardware
Produces a comprehensive report detailing every aspect of the detected hardware components within the system.
Display brief hardware information
Gives a succinct summary of the hardware configuration, providing a general overview rather than exhaustive details.
Display bus information
Details bus information for all detected hardware components, helpful for understanding the communication routes between hardware elements.
Enable/disable specific features
Prevents the listing of USB devices in the report, useful when USB device details are not necessary for the investigation.
lshw -disable usb
Turns on the reporting of DMI/SMBIOS information, which provides additional hardware component details stored in the system BIOS.
lshw -enable dmi
Use numeric IDs for devices
Outputs numeric IDs instead of descriptive names for devices, aiding in identifying specific hardware elements based on their standard device IDs.
Display less verbose output
Limits the verbosity of the output, leading to a more compact and less detailed report.
Remove sensitive information from the output
Ensures the output excludes any sensitive information such as serial numbers, promoting a safer sharing of the report.
Generate report in HTML format
Creates an HTML report for easy viewing and navigation within a web browser.
lshw -html > hardware.html
Generate report in XML format
Forms an XML report, ideal for parsing and processing by other software or for storage purposes.
lshw -xml > hardware.xml
Generate report in SQLite format
Generates an SQLite database report, allowing efficient querying and extraction of hardware information in structured form.
lshw -dump > hardware.db
This specific SQLite feature requires the sqlite useflag to be enabled.
Display specific hardware classes
Provides details of the CPU including its type, speed, cores, and cache information.
lshw -class processor
Displays comprehensive details about the system memory such as RAM, ROM, and any associated caches.
lshw -class memory
Reports on disk drives, including their type, size, and partitioning information.
lshw -class disk
Presents information on storage controllers, like SATA or NVMe controllers, critical in understanding the storage infrastructure.
lshw -class storage
Details on network interfaces including ethernet and WiFi, providing insights into networking capabilities.
lshw -class network
Describes graphics cards and monitors, essential for understanding the system's display capabilities.
lshw -class display
Details multimedia devices like sound cards, providing information on audio-visual capabilities.
lshw -class multimedia
Provides information about any attached printers, useful in troubleshooting and setting up printing capabilities.
lshw -class printer
Offers extensive details about the system/motherboard, providing a broad understanding of the system's foundation.
lshw -class system
Reports on busses, like USB or PCI, integral to understanding how components communicate within the system.
lshw -class bus
Describes bridge devices, crucial for understanding connections between different parts of the computer system.
lshw -class bridge
Presents data on communication devices, useful in examining and troubleshooting communication capabilities.
lshw -class communication
Furnishes information about generic/unclassified devices that may not fit into other specific hardware classes.
lshw -class generic
Reveals details about power-related hardware, like UPS, important in understanding the power management infrastructure.
lshw -class power
Provides information about volumes/partitions, assisting in disk and storage management tasks.
lshw -class volume