2018-01-02 00:40:38 +08:00
|
|
|
# lshw
|
|
|
|
|
|
|
|
> List detailed information about hardware configurations as root user.
|
2021-08-16 07:34:01 -03:00
|
|
|
> More information: <https://manned.org/lshw>.
|
2018-01-02 00:40:38 +08:00
|
|
|
|
|
|
|
- Launch the GUI:
|
|
|
|
|
|
|
|
`sudo lshw -X`
|
|
|
|
|
2021-08-15 19:59:09 +02:00
|
|
|
- List all hardware in tabular format:
|
2018-01-02 00:40:38 +08:00
|
|
|
|
|
|
|
`sudo lshw -short`
|
|
|
|
|
|
|
|
- List all disks and storage controllers in tabular format:
|
|
|
|
|
2025-05-10 19:53:24 +03:00
|
|
|
`sudo lshw {{[-c|-class]}} disk -class storage -short`
|
2018-01-02 00:40:38 +08:00
|
|
|
|
2025-05-10 19:53:24 +03:00
|
|
|
- Save all network interfaces to an HTML/XML/JSON file:
|
2018-01-02 00:40:38 +08:00
|
|
|
|
2025-05-10 19:53:24 +03:00
|
|
|
`sudo lshw {{[-c|-class]}} network -{{html|xml|json}} > interfaces{{.html|.xml|.json}}`
|