Today i will share with you a tool that can help you check your hardware components and its core configuration settings. This tool is available for all Linux Distributions; Redhat, Centos, Ubuntu, Debian, Solaris, Arch Linux and others.  It is a Linux hardware utility which gives  detailed information about the hardware installed on your machine.

The name of the utility is  lshw. lshw is a small tool to extract detailed information on the hardware configuration of the machine. It can report exact  memory  configuration,  firmware  version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or IA-64  systems and on some PowerPC machines (PowerMac G4 is known to work).
There are other ways you can see hardware configuration of your Linux system like /proc directory, and use of   
lspci: lspci is a utility for displaying information about PCI buses in the system and devices connected to them.By  default, it shows a brief list of devices.

How to Install Lshw:
1. Debian:

 sudo apt-get install lshw
sudo aptitude install lshw

2. Kali Linux:

sudo apt-get install lshw

 

 sudo aptitude install lshw

3. RHEL/ Centos/ Fedora

$ sudo yum install lshw

The most used options are:
     version: Displays the version of lshw and exits.

-help: Displays the available command line options and quits.
# lshw -help
-X: Launch the X11 GUI (if available).
# lshw -X
-html:  Outputs the device tree as an HTML page.
# lshw -html
   -xml   Outputs the device tree as an XML tree.
# lshw -xml
-json  Outputs the device tree as a JSON object.

  -businfo: Outputs the device list showing bus information, detailing   SCSI, USB, IDE and PCI addresses.

 # lshw -businfo

     -dump filename:  Dump collected information into a file (SQLite database).

-class class:  Only show the given class of hardware. class can be found using lshw -short or lshw -businfo.

Example:
The results below are from use of

lshw -short

 

[email protected]:/opt# lshw  -short

H/W path        Device      Class          Description
======================================================
system         TECRA M11 (0000000000)
/0                           bus            Portable PC
/0/0                        memory         1MiB BIOS
/0/21                      processor      Intel(R) Core(TM) i5 CPU       M 520  @ 2.40GHz
/0/21/23                 memory         256KiB L2 cache
/0/21/24                 memory         32KiB L1 cache
/0/22                      memory         32KiB L1 cache
/0/25                      processor      Core i7
/0/25/27                  memory         256KiB L2 cache
/0/25/28                  memory         32KiB L1 cache
/0/26                       memory         32KiB L1 cache
/0/29                       processor      Core i7
/0/29/2b                    memory         256KiB L2 cache
/0/29/2c                    memory         32KiB L1 cache
/0/2a                       memory         32KiB L1 cache
/0/2d                       processor      Core i7
/0/2d/2f                    memory         256KiB L2 cache
/0/2d/30                    memory         32KiB L1 cache
/0/2e                       memory         32KiB L1 cache
/0/31                       memory         8GiB System Memory
/0/31/0                     memory         4GiB SODIMM DDR3 Synchronous 1067 MHz (0.9 ns)
/0/31/1                     memory         4GiB SODIMM DDR3 Synchronous 1067 MHz (0.9 ns)
/0/100                      bridge         Core Processor DRAM Controller
/0/100/2                    display        Core Processor Integrated Graphics Controller
/0/100/16                   communication  5 Series/3400 Series Chipset HECI Controller
/0/100/19       eth0        network        82577LM Gigabit Network Connection
/0/100/1a                   bus            5 Series/3400 Series Chipset USB2 Enhanced Host Controller
/0/100/1b                   multimedia     5 Series/3400 Series Chipset High Definition Audio
/0/100/1c                   bridge         5 Series/3400 Series Chipset PCI Express Root Port 1
/0/100/1c/0                 generic        MMC/SD Host Controller
/0/100/1c/0.1               generic        R5U2xx (R5U230 / R5U231 / R5U241) [Memory Stick Host Controller]
/0/100/1c.1                 bridge         5 Series/3400 Series Chipset PCI Express Root Port 2
/0/100/1c.1/0   wlan0       network        Centrino Advanced-N 6200
/0/100/1c.2                 bridge         5 Series/3400 Series Chipset PCI Express Root Port 3
/0/100/1d                   bus            5 Series/3400 Series Chipset USB2 Enhanced Host Controller
/0/100/1e                   bridge         82801 Mobile PCI Bridge
/0/100/1f                   bridge         Mobile 5 Series Chipset LPC Interface Controller
/0/100/1f.2                 storage        5 Series/3400 Series Chipset 6 port SATA AHCI Controller
/0/100/1f.6                 generic        5 Series/3400 Series Chipset Thermal Subsystem
/0/101                      bridge         Core Processor QuickPath Architecture Generic Non-core Registers
/0/102                      bridge         Core Processor QuickPath Architecture System Address Decoder
/0/103                      bridge         Core Processor QPI Link 0
/0/104                      bridge         Core Processor QPI Physical 0
/0/105                      bridge         Core Processor Reserved
/0/106                      bridge         Core Processor Reserved
/0/1            scsi0       storage
/0/1/0.0.0      /dev/sda    disk           500GB WDC WD5000BPVT-0
/0/1/0.0.0/1    /dev/sda1   volume         100MiB Windows NTFS volume
/0/1/0.0.0/2    /dev/sda2   volume         426GiB Extended partition
/0/1/0.0.0/2/5  /dev/sda5   volume         48GiB HPFS/NTFS partition
/0/1/0.0.0/2/6  /dev/sda6   volume         116GiB Linux filesystem partition
/0/1/0.0.0/2/7  /dev/sda7   volume         15GiB HPFS/NTFS partition
/0/1/0.0.0/2/8  /dev/sda8   volume         4656MiB Linux swap / Solaris partition
/0/1/0.0.0/2/9  /dev/sda9   volume         84GiB HPFS/NTFS partition
/0/1/0.0.0/2/a  /dev/sda10  volume         156GiB HPFS/NTFS partition
/0/1/0.0.0/3    /dev/sda3   volume         39GiB Linux filesystem partition
/0/2            scsi1       storage
/0/2/0.0.0      /dev/cdrom  disk           DV-W28S-VT
/1                          power          Lithium Ion Battery
/2                          power          Lithium Ion Battery
/3                          power
/4              wwan0       network        Ethernet interface