From Gentoo Wiki
Jump to:navigation Jump to:search

This article is a stub. Please help out by expanding it - how to get started.

lshw is a hardware detection utility for Linux.


USE flags

USE flags for sys-apps/lshw Hardware Lister

gtk Add support for x11-libs/gtk+ (The GIMP Toolkit)
sqlite Add support for sqliteembedded sql database
static !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically


root #emerge --ask sys-apps/lshw



root #lshw --help
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.)

See also

  • Pciutils — contains various utilities dealing with the PCI bus (primarily lspci).
  • Usbutils — a collection various utilities for querying the the Universal Serial Bus (USB).