1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-31 00:15:31 +02:00
tldr/pages/linux/lshw.md

21 lines
485 B
Markdown
Raw Normal View History

2018-01-02 00:40:38 +08:00
# lshw
> List detailed information about hardware configurations as root user.
> More information: <https://manned.org/lshw>.
2018-01-02 00:40:38 +08:00
- Launch the GUI:
`sudo lshw -X`
- 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:
`sudo lshw {{[-c|-class]}} disk -class storage -short`
2018-01-02 00:40:38 +08:00
- Save all network interfaces to an HTML/XML/JSON file:
2018-01-02 00:40:38 +08:00
`sudo lshw {{[-c|-class]}} network -{{html|xml|json}} > interfaces{{.html|.xml|.json}}`