1LSHW(1)                                                                LSHW(1)
2
3
4

NAME

6       lshw - list hardware
7

SYNOPSIS

9       lshw [ -version ]
10
11       lshw [ -help ]
12
13       lshw [ -X ]
14
15       lshw  [  [ -html ]  [ -short ]  [ -xml ]  [ -json ]  [ -businfo ]  ]  [
16       -dump filename ]  [ -class class... ]  [ -disable test... ]  [  -enable
17       test... ]  [ -sanitize ]  [ -numeric ]  [ -quiet ]  [ -notime ]
18

DESCRIPTION

20       lshw  is  a  small tool to extract detailed information on the hardware
21       configuration of the machine. It can report exact memory configuration,
22       firmware version, mainboard configuration, CPU version and speed, cache
23       configuration, bus speed, etc. on DMI-capable x86 or IA-64 systems  and
24       on some PowerPC machines (PowerMac G4 is known to work).
25
26       It  currently  supports  DMI  (x86 and IA-64 only), OpenFirmware device
27       tree (PowerPC only), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA  (only
28       tested on x86), SCSI and USB.
29
30       -version
31              Displays the version of lshw and exits.
32
33       -help  Displays the available command line options and quits.
34
35       -X     Launch the X11 GUI (if available).
36
37       -html  Outputs the device tree as an HTML page.
38
39       -xml   Outputs the device tree as an XML tree.
40
41       -json  Outputs  the device tree as a JSON object (JavaScript Object No‐
42              tation).
43
44       -short Outputs the device tree showing hardware paths, very  much  like
45              the output of HP-UX's ioscan.
46
47       -businfo
48              Outputs the device list showing bus information, detailing SCSI,
49              USB, IDE and PCI addresses.
50
51       -dump filename
52              Display output  and  dump  collected  information  into  a  file
53              (SQLite database).
54
55       -class class
56              Only  show the given class of hardware. class can be found using
57              lshw -short or lshw -businfo.
58
59       -C class
60              Alias for -class class.
61
62       -enable test
63
64       -disable test
65              Enables or disables a test. test can be dmi (for DMI/SMBIOS  ex‐
66              tensions),  device-tree (for OpenFirmware device tree), spd (for
67              memory Serial Presence Detect), memory (for memory-size guessing
68              heuristics),  cpuinfo (for kernel-reported CPU detection), cpuid
69              (for CPU detection), pci (for PCI/AGP access), isapnp  (for  ISA
70              PnP  extensions),  pcmcia  (for PCMCIA/PCCARD), ide (for IDE/AT‐
71              API), usb (for USB devices),scsi (for SCSI) or network (for net‐
72              work interfaces detection).
73
74       -quiet Don't display status.
75
76       -sanitize
77              Remove  potentially  sensitive  information  from output (IP ad‐
78              dresses, serial numbers, etc.).
79
80       -numeric
81              Also display numeric IDs (for PCI and USB devices).
82
83       -notime
84              Exclude volatile attributes (timestamps) from output.
85

BUGS

87       lshw currently does not detect Firewire(IEEE1394) devices.
88
89       Not all architectures supported by GNU/Linux are fully supported  (e.g.
90       CPU detection).
91
92       "Virtual"  SCSI interfaces used for SCSI emulation over IDE are not re‐
93       ported correctly yet.
94

NOTES

96       lshw must be run as super user or it will only report partial  informa‐
97       tion.
98

FILES

100       /usr/local/share/pci.ids
101
102       /usr/share/pci.ids
103
104       /etc/pci.ids
105
106       /usr/share/hwdata/pci.ids
107              A list of all known PCI ID's (vendors, devices, classes and sub‐
108              classes).  If compiled with zlib support,  lshw  will  look  for
109              pci.ids.gz first, then for pci.ids.
110
111       /proc/bus/pci/*
112              Used  to access the configuration of installed PCI buses and de‐
113              vices.
114
115       /proc/ide/*
116              Used to access the configuration of installed IDE buses and  de‐
117              vices.
118
119       /proc/scsi/*, /dev/sg*
120              Used to access the configuration of installed SCSI devices.
121
122       /dev/cpu/*/cpuid
123              Used on x86 platforms to access CPU-specific configuration.
124
125       /proc/device-tree/*
126              Used on PowerPC platforms to access OpenFirmware configuration.
127
128       /proc/bus/usb/*
129              Used  to access the configuration of installed USB buses and de‐
130              vices.
131
132       /sys/* Used on 2.6 kernels to access hardware/driver configuration  in‐
133              formation.
134

EXAMPLES

136       lshw -short
137              Lists hardware in a compact format.
138
139       lshw -class disk -class storage
140              Lists all disks and storage controllers in the system.
141
142       lshw -html -class network
143              Lists all network interfaces in HTML.
144
145       lshw -disable dmi
146              Don't use DMI to detect hardware.
147

SEE ALSO

149       /proc/*, linuxinfo(1), lspci(8), lsusb(8)
150

COPYING

152       lshw  is distributed under the GNU GENERAL PUBLIC LICENSE (GPL) version
153       2.
154

AUTHOR

156       lshw is maintained by Lyonel Vincent <lyonel@ezix.org>.
157

OTHER INFO

159       The webpage for lshw is at
160        <URL:http://lshw.ezix.org/>
161
162
163
164$Rev$                           15 October 2020                        LSHW(1)
Impressum