🖥️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.

▁ ▂ ▃ ▄ ꧁ 🔴☠ 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						       #
#==============================##==============================#
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░