🖥️lshw
➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the lshw command with important options and switches using examples.
2 minute read
▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁
# ██╗ ███████╗██╗ ██╗██╗ ██╗
# ██║ ██╔════╝██║ ██║██║ ██║
# ██║ ███████╗███████║██║ █╗ ██║
# ██║ ╚════██║██╔══██║██║███╗██║
# ███████╗███████║██║ ██║╚███╔███╔╝
# ╚══════╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝
# Get hardware information on Linux
# The lshw command extracts and displays detailed information on the hardware configuration of the machine.
# Generate full information report about all detected hardware
lshw
# Display hardware information in short
lshw -short
# Display only memory information
lshw -short -class memory
# Display processor information
lshw -class processor
# Display the disk drives with the disk class
lshw -short -class disk
# Display information about the partitions and controllers also,
# specify the storage and volume class along with the disk class
lshw -short -class disk -class storage -class volume
# Network adapter information
lshw -class network
# Display the address details of pci, usb, scsi and ide devices
lshw -businfo
# Generate report in html format
lshw -html > hardware.html
# Generate report in xml format
lshw -html > hardware.html
$ sudo lshw
[sudo] password for himanshu:
himanshu-desktop
description: Desktop Computer
product: To Be Filled By O.E.M. (To Be Filled By O.E.M.)
vendor: To Be Filled By O.E.M.
version: To Be Filled By O.E.M.
serial: To Be Filled By O.E.M.
width: 32 bits
capabilities: smbios-2.6 dmi-2.6 smp-1.4 smp
...
...
..
#==============================##==============================#
# CMD LSHW #
#==============================##==============================#
Cheatsheets are an excellent complement to other information sources like Linux man-pages, Linux help, or How-To’s and tutorials, as they provide compact and easily accessible information. While man-pages and detailed tutorials often contain comprehensive explanations and extensive guides, cheatsheets summarize the most important options forthe command lshw in a clear format. This allows users to quickly access the needed information for lshw without having to sift through lengthy texts. Especially in stressful situations or for recurring tasks, cheatsheets for lshw are a valuable resource to work efficiently and purposefully.
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
█║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌
██╗ ██╗ ██████╗ ██████╗ ██╗ ██╗███████╗██████╗
████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
╚██╔═██╔╝██║ ██║██║ ██║ ╚███╔╝ █████╗ ██║ ██║
████████╗██║ ██║██║ ██║ ██╔██╗ ██╔══╝ ██║ ██║
╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝
█║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.