{
    "content": [
        {
            "type": "text",
            "text": "# lshw (man)\n\n## NAME\n\nlshw - list hardware\n\n## SYNOPSIS\n\nlshw [ -version ]\nlshw [ -help ]\nlshw [ -X ]\nlshw  [   [  -html ]  [ -short ]  [ -xml ]  [ -json ]  [ -businfo ]  ]  [ -dump filename ]  [\n\n## DESCRIPTION\n\nlshw is a small tool to extract detailed information on the hardware configuration of the ma‐\nchine. It can report exact memory configuration, firmware version,  mainboard  configuration,\nCPU  version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or IA-64 sys‐\ntems and on some PowerPC machines (PowerMac G4 is known to work).\n\n## TLDR\n\n> List detailed information about hardware configurations as root user.\n\n- Launch the X11 GUI (if available):\n  `sudo lshw -X`\n- List all hardware in tabular format:\n  `sudo lshw -short`\n- List multiple class of hardware (all disks and storage controllers) in tabular format:\n  `sudo lshw {{-c|-class}} disk {{-c|-class}} storage -short`\n- Save all network interfaces to an HTML/XML/JSON file:\n  `sudo lshw {{-c|-class}} network -{{html|xml|json}} > interfaces{{.html|.xml|.json}}`\n- List network interfaces without revealing sensitive information (IP addresses, serial numbers, etc.):\n  `sudo lshw {{-c|-class}} network -sanitize`\n- List a particular class of hardware:\n  `sudo lshw {{-c|-class}} {{system|bridge|memory|processor|address|storage|disk|tape|bus|network|display|input|printer|multimedia|communication|power|volume|generic}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS** (2 subsections)\n- **DESCRIPTION** (17 subsections)\n- **BUGS**\n- **NOTES**\n- **FILES** (4 subsections)\n- **EXAMPLES** (4 subsections)\n- **SEE ALSO**\n- **COPYING**\n- **AUTHOR**\n- **OTHER INFO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "lshw",
        "section": "",
        "mode": "man",
        "summary": "lshw - list hardware",
        "synopsis": "lshw [ -version ]\nlshw [ -help ]\nlshw [ -X ]\nlshw  [   [  -html ]  [ -short ]  [ -xml ]  [ -json ]  [ -businfo ]  ]  [ -dump filename ]  [",
        "tldr_summary": "List detailed information about hardware configurations as root user.",
        "tldr_examples": [
            {
                "description": "Launch the X11 GUI (if available)",
                "command": "sudo lshw -X"
            },
            {
                "description": "List all hardware in tabular format",
                "command": "sudo lshw -short"
            },
            {
                "description": "List multiple class of hardware (all disks and storage controllers) in tabular format",
                "command": "sudo lshw {{-c|-class}} disk {{-c|-class}} storage -short"
            },
            {
                "description": "Save all network interfaces to an HTML/XML/JSON file",
                "command": "sudo lshw {{-c|-class}} network -{{html|xml|json}} > interfaces{{.html|.xml|.json}}"
            },
            {
                "description": "List network interfaces without revealing sensitive information (IP addresses, serial numbers, etc.)",
                "command": "sudo lshw {{-c|-class}} network -sanitize"
            },
            {
                "description": "List a particular class of hardware",
                "command": "sudo lshw {{-c|-class}} {{system|bridge|memory|processor|address|storage|disk|tape|bus|network|display|input|printer|multimedia|communication|power|volume|generic}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Displays the version of lshw and exits."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-X",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "ioscan."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Outputs the device list showing bus information, detailing SCSI, USB, IDE and PCI ad‐ dresses."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Display output and dump collected information into a file (SQLite database)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Only show the given class of hardware. class can be found using lshw -short or lshw -businfo."
            },
            {
                "flag": "-C",
                "long": null,
                "arg": null,
                "description": "Alias for -class class."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Enables or disables a test. test can be dmi (for DMI/SMBIOS extensions), device-tree (for OpenFirmware device tree), spd (for memory Serial Presence Detect), memory (for memory-size guessing heuristics), cpuinfo (for kernel-reported CPU detection), cpuid (for CPU detection), pci (for PCI/AGP access), isapnp (for ISA PnP extensions), pcmcia (for PCMCIA/PCCARD), ide (for IDE/ATAPI), usb (for USB devices),scsi (for SCSI) or network (for network interfaces detection)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Remove potentially sensitive information from output (IP addresses, serial numbers, etc.)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Also display numeric IDs (for PCI and USB devices)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Exclude volatile attributes (timestamps) from output."
            }
        ],
        "examples": [
            "Lists hardware in a compact format.",
            "Lists all disks and storage controllers in the system.",
            "Lists all network interfaces in HTML.",
            "Don't use DMI to detect hardware."
        ],
        "see_also": [
            {
                "name": "linuxinfo",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/linuxinfo/1/json"
            },
            {
                "name": "lspci",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lspci/8/json"
            },
            {
                "name": "lsusb",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lsusb/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": [
                    {
                        "name": "-class -disable -enable -sanitize -numeric",
                        "lines": 1
                    },
                    {
                        "name": "-quiet -notime",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": [
                    {
                        "name": "-version",
                        "lines": 2
                    },
                    {
                        "name": "-help",
                        "lines": 1
                    },
                    {
                        "name": "-X",
                        "lines": 1,
                        "flag": "-X"
                    },
                    {
                        "name": "-html",
                        "lines": 1
                    },
                    {
                        "name": "-xml",
                        "lines": 1
                    },
                    {
                        "name": "-json",
                        "lines": 1
                    },
                    {
                        "name": "-short",
                        "lines": 2
                    },
                    {
                        "name": "-businfo",
                        "lines": 3
                    },
                    {
                        "name": "-dump",
                        "lines": 2
                    },
                    {
                        "name": "-class",
                        "lines": 3
                    },
                    {
                        "name": "-C",
                        "lines": 2,
                        "flag": "-C"
                    },
                    {
                        "name": "-enable",
                        "lines": 1
                    },
                    {
                        "name": "-disable",
                        "lines": 7
                    },
                    {
                        "name": "-quiet",
                        "lines": 1
                    },
                    {
                        "name": "-sanitize",
                        "lines": 3
                    },
                    {
                        "name": "-numeric",
                        "lines": 2
                    },
                    {
                        "name": "-notime",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "BUGS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "/usr/local/share/pci.ids",
                        "lines": 1
                    },
                    {
                        "name": "/usr/share/pci.ids",
                        "lines": 1
                    },
                    {
                        "name": "/etc/pci.ids",
                        "lines": 1
                    },
                    {
                        "name": "/usr/share/hwdata/pci.ids",
                        "lines": 23
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "lshw -short",
                        "lines": 2
                    },
                    {
                        "name": "lshw -class disk -class storage",
                        "lines": 2
                    },
                    {
                        "name": "lshw -html -class network",
                        "lines": 2
                    },
                    {
                        "name": "lshw -disable dmi",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYING",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "OTHER INFO",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "lshw - list hardware\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "lshw [ -version ]\n\nlshw [ -help ]\n\nlshw [ -X ]\n\nlshw  [   [  -html ]  [ -short ]  [ -xml ]  [ -json ]  [ -businfo ]  ]  [ -dump filename ]  [",
                "subsections": [
                    {
                        "name": "-class -disable -enable -sanitize -numeric",
                        "content": ""
                    },
                    {
                        "name": "-quiet -notime",
                        "content": ""
                    }
                ]
            },
            "DESCRIPTION": {
                "content": "lshw is a small tool to extract detailed information on the hardware configuration of the ma‐\nchine. It can report exact memory configuration, firmware version,  mainboard  configuration,\nCPU  version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or IA-64 sys‐\ntems and on some PowerPC machines (PowerMac G4 is known to work).\n\nIt currently supports DMI (x86 and IA-64 only),  OpenFirmware  device  tree  (PowerPC  only),\nPCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA (only tested on x86), SCSI and USB.\n",
                "subsections": [
                    {
                        "name": "-version",
                        "content": "Displays the version of lshw and exits.\n"
                    },
                    {
                        "name": "-help",
                        "content": ""
                    },
                    {
                        "name": "-X",
                        "content": "",
                        "flag": "-X"
                    },
                    {
                        "name": "-html",
                        "content": ""
                    },
                    {
                        "name": "-xml",
                        "content": ""
                    },
                    {
                        "name": "-json",
                        "content": ""
                    },
                    {
                        "name": "-short",
                        "content": "ioscan.\n"
                    },
                    {
                        "name": "-businfo",
                        "content": "Outputs the device list showing bus information, detailing SCSI, USB, IDE and PCI  ad‐\ndresses.\n"
                    },
                    {
                        "name": "-dump",
                        "content": "Display output and dump collected information into a file (SQLite database).\n"
                    },
                    {
                        "name": "-class",
                        "content": "Only  show  the  given class of hardware. class can be found using lshw -short or lshw\n-businfo.\n"
                    },
                    {
                        "name": "-C",
                        "content": "Alias for -class class.\n",
                        "flag": "-C"
                    },
                    {
                        "name": "-enable",
                        "content": ""
                    },
                    {
                        "name": "-disable",
                        "content": "Enables or disables a test. test can be dmi (for DMI/SMBIOS  extensions),  device-tree\n(for  OpenFirmware  device tree), spd (for memory Serial Presence Detect), memory (for\nmemory-size guessing heuristics), cpuinfo (for kernel-reported CPU  detection),  cpuid\n(for CPU detection), pci (for PCI/AGP access), isapnp (for ISA PnP extensions), pcmcia\n(for PCMCIA/PCCARD), ide (for IDE/ATAPI), usb (for USB  devices),scsi  (for  SCSI)  or\nnetwork (for network interfaces detection).\n"
                    },
                    {
                        "name": "-quiet",
                        "content": ""
                    },
                    {
                        "name": "-sanitize",
                        "content": "Remove  potentially  sensitive  information from output (IP addresses, serial numbers,\netc.).\n"
                    },
                    {
                        "name": "-numeric",
                        "content": "Also display numeric IDs (for PCI and USB devices).\n"
                    },
                    {
                        "name": "-notime",
                        "content": "Exclude volatile attributes (timestamps) from output.\n"
                    }
                ]
            },
            "BUGS": {
                "content": "lshw currently does not detect Firewire(IEEE1394) devices.\n\nNot all architectures supported by GNU/Linux are fully supported (e.g.  CPU detection).\n\n\"Virtual\" SCSI interfaces used for SCSI emulation over IDE are not reported correctly yet.\n",
                "subsections": []
            },
            "NOTES": {
                "content": "lshw must be run as super user or it will only report partial information.\n",
                "subsections": []
            },
            "FILES": {
                "content": "",
                "subsections": [
                    {
                        "name": "/usr/local/share/pci.ids",
                        "content": ""
                    },
                    {
                        "name": "/usr/share/pci.ids",
                        "content": ""
                    },
                    {
                        "name": "/etc/pci.ids",
                        "content": ""
                    },
                    {
                        "name": "/usr/share/hwdata/pci.ids",
                        "content": "A list of all known PCI ID's (vendors, devices, classes and subclasses).  If  compiled\nwith zlib support, lshw will look for pci.ids.gz first, then for pci.ids.\n\n/proc/bus/pci/*\nUsed to access the configuration of installed PCI buses and devices.\n\n/proc/ide/*\nUsed to access the configuration of installed IDE buses and devices.\n\n/proc/scsi/*, /dev/sg*\nUsed to access the configuration of installed SCSI devices.\n\n/dev/cpu/*/cpuid\nUsed on x86 platforms to access CPU-specific configuration.\n\n/proc/device-tree/*\nUsed on PowerPC platforms to access OpenFirmware configuration.\n\n/proc/bus/usb/*\nUsed to access the configuration of installed USB buses and devices.\n\n/sys/* Used on 2.6 kernels to access hardware/driver configuration information.\n"
                    }
                ]
            },
            "EXAMPLES": {
                "content": "",
                "subsections": [
                    {
                        "name": "lshw -short",
                        "content": "Lists hardware in a compact format.\n"
                    },
                    {
                        "name": "lshw -class disk -class storage",
                        "content": "Lists all disks and storage controllers in the system.\n"
                    },
                    {
                        "name": "lshw -html -class network",
                        "content": "Lists all network interfaces in HTML.\n"
                    },
                    {
                        "name": "lshw -disable dmi",
                        "content": "Don't use DMI to detect hardware.\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "/proc/*, linuxinfo(1), lspci(8), lsusb(8)\n",
                "subsections": []
            },
            "COPYING": {
                "content": "lshw is distributed under the GNU GENERAL PUBLIC LICENSE (GPL) version 2.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "lshw is maintained by Lyonel Vincent <lyonel@ezix.org>.\n",
                "subsections": []
            },
            "OTHER INFO": {
                "content": "The webpage for lshw is at\n<URL:http://lshw.ezix.org/>\n\n\n\n$Rev$                                      15 October 2020                                   LSHW(1)",
                "subsections": []
            }
        }
    }
}