From 2a35fd66275f0605cee90e598bc60f6e100793a2 Mon Sep 17 00:00:00 2001 From: Max Xu Date: Tue, 2 Jan 2018 00:40:38 +0800 Subject: [PATCH] lshw: add page (#1854) --- pages/linux/lshw.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/linux/lshw.md diff --git a/pages/linux/lshw.md b/pages/linux/lshw.md new file mode 100644 index 0000000000..8f8f27e704 --- /dev/null +++ b/pages/linux/lshw.md @@ -0,0 +1,19 @@ +# lshw + +> List detailed information about hardware configurations as root user. + +- Launch the GUI: + +`sudo lshw -X` + +- List all hardwares in tabular format: + +`sudo lshw -short` + +- List all disks and storage controllers in tabular format: + +`sudo lshw -class disk -class storage -short` + +- Save all network interfaces to an HTML file: + +`sudo lshw -class network -html > {{interfaces.html}}`