≡ Menu

Linux Command To Find the System Configuration And Hardware Information

What is the command to find the system configuration on Linux operating system using command line (text) mode?


On Linux based system most of the hardware information can be extracted from /proc file system, for example display CPU and Memory information, enter:

Tutorial details
DifficultyIntermediate (rss)
Root privilegesYes
RequirementsNone
Estimated completion time10 minutes
cat /proc/meminfo
cat /proc/cpuinfo

The following list summarizes commands to get various hardware from the system:

Linux cpu/hardware information

Use any one of the following command:
# less /proc/cpuinfo
OR
# lscpu
Sample outputs:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                32
On-line CPU(s) list:   0-31
Thread(s) per core:    2
Core(s) per socket:    8
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 45
Stepping:              7
CPU MHz:               1999.874
BogoMIPS:              4000.99
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              20480K
NUMA node0 CPU(s):     0-7,16-23
NUMA node1 CPU(s):     8-15,24-31

Linux show free and used memory in the system

Use any one of the following command:
# cat /proc/meminfo
OR
# free
# free -m
# free -mt
# free -gt

Sample outputs:

             total       used       free     shared    buffers     cached
Mem:      32911564   32665848     245716     168592     294192   29324484
-/+ buffers/cache:    3047172   29864392
Swap:       999420      81832     917588

You can also run top/htop/atop commands to see used and free memory and cpu usage and more:
# top
# htop
# atop

Find ram speed and max supported ram by the server

# dmidecode --type 17
# lshw -short -C memory
# perl memconf.v3.06.pl -v

Sample outputs:

memconf:  V3.06 17-Feb-2015 http://sourceforge.net/projects/memconf/
hostname: server1
manufacturer: Supermicro
model:    X9DRi-LN4+/X9DR3-LN4+ (2 X Eight-Core Hyper-Threaded Intel(R) Xeon(R) E5-2650 0 @ 2.00GHz)
BusyBox v1.21.1
is, Ubuntu 14.04.2 LTS, 64-bit kernel, Linux 3.13.0-46-generic
CPU 1: Intel(R) Xeon(R) E5-2650 0 @ 2.00GHz cpu, system freq: 100MHz
CPU 2: Intel(R) Xeon(R) E5-2650 0 @ 2.00GHz cpu, system freq: 100MHz
Memory Error Correction: Multi-bit ECC
Maximum Memory: 786432MB (768GB)
P1-DIMMA1 P0_Node0_Channel0_Dimm0: 4096MB 1600MHz Registered (Buffered) DDR3 DIMM, Kingston SL4D316R11D8HE
P1-DIMMB1 P0_Node0_Channel1_Dimm0: 4096MB 1600MHz Registered (Buffered) DDR3 DIMM, Kingston SL4D316R11D8HE
P1-DIMMC1 P0_Node0_Channel2_Dimm0: 4096MB 1600MHz Registered (Buffered) DDR3 DIMM, Kingston SL4D316R11D8HE
P1-DIMMD1 P0_Node0_Channel3_Dimm0: 4096MB 1600MHz Registered (Buffered) DDR3 DIMM, Kingston SL4D316R11D8HE
P2-DIMME1 P1_Node1_Channel0_Dimm0: 4096MB 1600MHz Registered (Buffered) DDR3 DIMM, Kingston SL4D316R11D8HE
P2-DIMMF1 P1_Node1_Channel1_Dimm0: 4096MB 1600MHz Registered (Buffered) DDR3 DIMM, Kingston SL4D316R11D8HE
P2-DIMMG1 P1_Node1_Channel2_Dimm0: 4096MB 1600MHz Registered (Buffered) DDR3 DIMM, Kingston SL4D316R11D8HE
P2-DIMMH1 P1_Node1_Channel3_Dimm0: 4096MB 1600MHz Registered (Buffered) DDR3 DIMM, Kingston SL4D316R11D8HE

Linux find out the current running kernel version

Type the following command:
# cat /proc/version
Sample outputs:

Linux version 3.2.0-43-generic (buildd@batsu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #68-Ubuntu SMP Wed May 15 03:33:33 UTC 2013

OR use the following command:
# uname -mrs
# uname -a

Find out information about the Linux distribution and version

# lsb_release -a
Sample outputs:

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 12.04.2 LTS
Release:	12.04
Codename:	precise

OR use the following command:
$ cat /etc/*release*
Sample outputs:

Red Hat Enterprise Linux Server release 6.4 (Santiago)

List all PCI devices

# lspci
Sample outputs:

00:00.0 Host bridge: Intel Corporation Xeon E5/Core i7 DMI2 (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 1a (rev 07)
00:01.1 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 1b (rev 07)
00:02.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 2a (rev 07)
00:03.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 3a in PCI Express Mode (rev 07)
00:04.0 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 0 (rev 07)
00:04.1 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 1 (rev 07)
00:04.2 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 2 (rev 07)
00:04.3 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 3 (rev 07)
00:04.4 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 4 (rev 07)
00:04.5 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 5 (rev 07)
00:04.6 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 6 (rev 07)
00:04.7 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 7 (rev 07)
00:05.0 System peripheral: Intel Corporation Xeon E5/Core i7 Address Map, VTd_Misc, System Management (rev 07)
00:05.2 System peripheral: Intel Corporation Xeon E5/Core i7 Control Status and Global Errors (rev 07)
00:05.4 PIC: Intel Corporation Xeon E5/Core i7 I/O APIC (rev 07)
00:11.0 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Virtual Root Port (rev 06)
00:16.0 Communication controller: Intel Corporation C600/X79 series chipset MEI Controller #1 (rev 05)
00:16.1 Communication controller: Intel Corporation C600/X79 series chipset MEI Controller #2 (rev 05)
00:1a.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #2 (rev 06)
00:1c.0 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 1 (rev b6)
00:1d.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #1 (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation C600/X79 series chipset LPC Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation C600/X79 series chipset 6-Port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation C600/X79 series chipset SMBus Host Controller (rev 06)
00:1f.6 Signal processing controller: Intel Corporation C600/X79 series chipset Thermal Management Controller (rev 06)
06:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
06:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
06:00.2 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
06:00.3 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
08:01.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200eW WPCM450 (rev 0a)
7f:08.0 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link 0 (rev 07)
7f:08.3 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 0 (rev 07)
7f:08.4 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 0 (rev 07)
7f:09.0 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link 1 (rev 07)
7f:09.3 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 1 (rev 07)
7f:09.4 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 1 (rev 07)
7f:0a.0 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 0 (rev 07)
7f:0a.1 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 1 (rev 07)
7f:0a.2 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 2 (rev 07)
7f:0a.3 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 3 (rev 07)
7f:0b.0 System peripheral: Intel Corporation Xeon E5/Core i7 Interrupt Control Registers (rev 07)
7f:0b.3 System peripheral: Intel Corporation Xeon E5/Core i7 Semaphore and Scratchpad Configuration Registers (rev 07)
7f:0c.0 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
7f:0c.1 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
7f:0c.2 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
7f:0c.3 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
7f:0c.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller System Address Decoder 0 (rev 07)
7f:0c.7 System peripheral: Intel Corporation Xeon E5/Core i7 System Address Decoder (rev 07)
7f:0d.0 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
7f:0d.1 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
7f:0d.2 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
7f:0d.3 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
7f:0d.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller System Address Decoder 1 (rev 07)
7f:0e.0 System peripheral: Intel Corporation Xeon E5/Core i7 Processor Home Agent (rev 07)
7f:0e.1 Performance counters: Intel Corporation Xeon E5/Core i7 Processor Home Agent Performance Monitoring (rev 07)
7f:0f.0 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Registers (rev 07)
7f:0f.1 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller RAS Registers (rev 07)
7f:0f.2 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 0 (rev 07)
7f:0f.3 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 1 (rev 07)
7f:0f.4 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 2 (rev 07)
7f:0f.5 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 3 (rev 07)
7f:0f.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 4 (rev 07)
7f:10.0 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 0 (rev 07)
7f:10.1 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 1 (rev 07)
7f:10.2 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 0 (rev 07)
7f:10.3 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 1 (rev 07)
7f:10.4 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 2 (rev 07)
7f:10.5 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 3 (rev 07)
7f:10.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 2 (rev 07)
7f:10.7 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 3 (rev 07)
7f:11.0 System peripheral: Intel Corporation Xeon E5/Core i7 DDRIO (rev 07)
7f:13.0 System peripheral: Intel Corporation Xeon E5/Core i7 R2PCIe (rev 07)
7f:13.1 Performance counters: Intel Corporation Xeon E5/Core i7 Ring to PCI Express Performance Monitor (rev 07)
7f:13.4 Performance counters: Intel Corporation Xeon E5/Core i7 QuickPath Interconnect Agent Ring Registers (rev 07)
7f:13.5 Performance counters: Intel Corporation Xeon E5/Core i7 Ring to QuickPath Interconnect Link 0 Performance Monitor (rev 07)
7f:13.6 System peripheral: Intel Corporation Xeon E5/Core i7 Ring to QuickPath Interconnect Link 1 Performance Monitor (rev 07)
80:01.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 1a (rev 07)
80:02.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 2a (rev 07)
80:03.0 PCI bridge: Intel Corporation Xeon E5/Core i7 IIO PCI Express Root Port 3a in PCI Express Mode (rev 07)
80:04.0 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 0 (rev 07)
80:04.1 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 1 (rev 07)
80:04.2 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 2 (rev 07)
80:04.3 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 3 (rev 07)
80:04.4 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 4 (rev 07)
80:04.5 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 5 (rev 07)
80:04.6 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 6 (rev 07)
80:04.7 System peripheral: Intel Corporation Xeon E5/Core i7 DMA Channel 7 (rev 07)
80:05.0 System peripheral: Intel Corporation Xeon E5/Core i7 Address Map, VTd_Misc, System Management (rev 07)
80:05.2 System peripheral: Intel Corporation Xeon E5/Core i7 Control Status and Global Errors (rev 07)
80:05.4 PIC: Intel Corporation Xeon E5/Core i7 I/O APIC (rev 07)
81:00.0 RAID bus controller: Adaptec AAC-RAID (rev 09)
ff:08.0 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link 0 (rev 07)
ff:08.3 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 0 (rev 07)
ff:08.4 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 0 (rev 07)
ff:09.0 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link 1 (rev 07)
ff:09.3 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 1 (rev 07)
ff:09.4 System peripheral: Intel Corporation Xeon E5/Core i7 QPI Link Reut 1 (rev 07)
ff:0a.0 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 0 (rev 07)
ff:0a.1 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 1 (rev 07)
ff:0a.2 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 2 (rev 07)
ff:0a.3 System peripheral: Intel Corporation Xeon E5/Core i7 Power Control Unit 3 (rev 07)
ff:0b.0 System peripheral: Intel Corporation Xeon E5/Core i7 Interrupt Control Registers (rev 07)
ff:0b.3 System peripheral: Intel Corporation Xeon E5/Core i7 Semaphore and Scratchpad Configuration Registers (rev 07)
ff:0c.0 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0c.1 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0c.2 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0c.3 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0c.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller System Address Decoder 0 (rev 07)
ff:0c.7 System peripheral: Intel Corporation Xeon E5/Core i7 System Address Decoder (rev 07)
ff:0d.0 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0d.1 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0d.2 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0d.3 System peripheral: Intel Corporation Xeon E5/Core i7 Unicast Register 0 (rev 07)
ff:0d.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller System Address Decoder 1 (rev 07)
ff:0e.0 System peripheral: Intel Corporation Xeon E5/Core i7 Processor Home Agent (rev 07)
ff:0e.1 Performance counters: Intel Corporation Xeon E5/Core i7 Processor Home Agent Performance Monitoring (rev 07)
ff:0f.0 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Registers (rev 07)
ff:0f.1 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller RAS Registers (rev 07)
ff:0f.2 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 0 (rev 07)
ff:0f.3 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 1 (rev 07)
ff:0f.4 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 2 (rev 07)
ff:0f.5 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 3 (rev 07)
ff:0f.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Target Address Decoder 4 (rev 07)
ff:10.0 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 0 (rev 07)
ff:10.1 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 1 (rev 07)
ff:10.2 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 0 (rev 07)
ff:10.3 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 1 (rev 07)
ff:10.4 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 2 (rev 07)
ff:10.5 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller Channel 0-3 Thermal Control 3 (rev 07)
ff:10.6 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 2 (rev 07)
ff:10.7 System peripheral: Intel Corporation Xeon E5/Core i7 Integrated Memory Controller ERROR Registers 3 (rev 07)
ff:11.0 System peripheral: Intel Corporation Xeon E5/Core i7 DDRIO (rev 07)
ff:13.0 System peripheral: Intel Corporation Xeon E5/Core i7 R2PCIe (rev 07)
ff:13.1 Performance counters: Intel Corporation Xeon E5/Core i7 Ring to PCI Express Performance Monitor (rev 07)
ff:13.4 Performance counters: Intel Corporation Xeon E5/Core i7 QuickPath Interconnect Agent Ring Registers (rev 07)
ff:13.5 Performance counters: Intel Corporation Xeon E5/Core i7 Ring to QuickPath Interconnect Link 0 Performance Monitor (rev 07)
ff:13.6 System peripheral: Intel Corporation Xeon E5/Core i7 Ring to QuickPath Interconnect Link 1 Performance Monitor (rev 07)

List all USB devices

# lsusb
Sample outputs:

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0557:2221 ATEN International Co., Ltd Winbond Hermon
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

List all block devices (hard disks, cdrom, and others)

# lsblk
Sample outputs:

sda      8:0    1 372.3G  0 disk
|-sda1   8:1    1   243M  0 part /boot
|-sda2   8:2    1     1K  0 part
|-sda5   8:5    1   976M  0 part [SWAP]
`-sda6   8:6    1 371.1G  0 part /
sr0     11:0    1  1024M  0 rom
loop0    7:0    0     4G  0 loop /jails/tmp

Display installed hard disk and size

# fdisk -l | grep '^Disk /dev/'
Sample outputs:

Disk /dev/sda: 399.7 GB, 399717171200 bytes

Display information about hardware RAID

See info about Adaptec hardware RAID:
# arcconf getconfig DEV
# /usr/StorMan/arcconf getconfig 1

See info about 3ware hardware RAID:
# tw_cli /dev show
# tw_cli /c0 show

Say hello to lshw

The lshw is a small command line 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):
# lshw | more
# lshw -html > output.htmlq
# lshw -short | less

Sample outputs:

H/W path          Device      Class          Description
========================================================
                              system         X9DRi-LN4+/X9DR3-LN4+ (To be filled by O.E.M.)
/0                            bus            X9DRi-LN4+/X9DR3-LN4+
/0/0                          memory         64KiB BIOS
/0/4                          processor      Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
/0/4/5                        memory         512KiB L1 cache
/0/4/6                        memory         2MiB L2 cache
/0/4/7                        memory         20MiB L3 cache
/0/6                          processor      Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
/0/6/9                        memory         512KiB L1 cache
/0/6/a                        memory         2MiB L2 cache
/0/6/b                        memory         20MiB L3 cache
/0/2f                         memory         System Memory
/0/2f/0                       memory         4GiB DIMM DDR3 1600 MHz (0.6 ns)
/0/2f/1                       memory         DIMM Synchronous [empty]
/0/2f/2                       memory         DIMM Synchronous [empty]
/0/2f/3                       memory         4GiB DIMM DDR3 1600 MHz (0.6 ns)
/0/2f/4                       memory         DIMM Synchronous [empty]
/0/2f/5                       memory         DIMM Synchronous [empty]
/0/2f/6                       memory         4GiB DIMM DDR3 1600 MHz (0.6 ns)
....
...
..
/0/1                          bridge         Xeon E5/Core i7 IIO PCI Express Root Port 1a
/0/1/0            scsi0       storage        AAC-RAID
/0/1/0/0.0.0      /dev/sda    disk           399GB SCSI Disk
/0/1/0/0.0.0/1    /dev/sda1   volume         243MiB Linux filesystem partition
/0/1/0/0.0.0/2    /dev/sda2   volume         372GiB Extended partition
/0/1/0/0.0.0/2/5  /dev/sda5   volume         976MiB Linux swap / Solaris partition
/0/1/0/0.0.0/2/6  /dev/sda6   volume         371GiB Linux filesystem partition
/0/1/0/1.0.0                  disk           SCSI Disk
/0/1/0/1.1.0                  disk           SCSI Disk
/0/1/0/1.2.0                  disk           SCSI Disk
/0/1/0/1.3.0                  disk           SCSI Disk
...
..
...
/0/68             scsi5       storage
/0/68/0.0.0       /dev/cdrom  disk           DV-28S-W
/1                            power          PWS-605P-1H
/2                vethWKP76N  network        Ethernet interface
/3                veth1N2SWB  network        Ethernet interface
/4                veth8L2A3F  network        Ethernet interface
/5                bond0       network        Ethernet interface
 

Dump all hardware information

Type the following command to see your motherboard, cpu, vendor, serial-numbers, RAM, disks, and other information directly from the system BIOS:
# dmidecode | less
Sample outputs:

# dmidecode 2.12
SMBIOS 2.7 present.
155 structures occupying 7700 bytes.
Table at 0x000EC440.
 
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
        Vendor: American Megatrends Inc.
        Version: 3.0b
        Release Date: 05/27/2014
        Address: 0xF0000
        Runtime Size: 64 kB
        ROM Size: 12288 kB
        Characteristics:
                PCI is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                Boot from CD is supported
                Selectable boot is supported
                BIOS ROM is socketed
                EDD is supported
                Print screen service is supported (int 5h)
                8042 keyboard services are supported (int 9h)
                Serial services are supported (int 14h)
                Printer services are supported (int 17h)
                ACPI is supported
                USB legacy is supported
                BIOS boot specification is supported
                Function key-initiated network boot is supported
                Targeted content distribution is supported
                UEFI is supported
        BIOS Revision: 3.11
 
Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: Supermicro
        Product Name: X9DRi-LN4+/X9DR3-LN4+
        Version: 0123456789
        Serial Number: 0123456789
        UUID: 00000000-0000-0000-0000-0025902E1590
        Wake-up Type: Power Switch
        SKU Number: To be filled by O.E.M.
        Family: To be filled by O.E.M.
 
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
        Manufacturer: Supermicro
....
..
...
 
Handle 0x00AB, DMI type 13, 22 bytes
BIOS Language Information
        Language Description Format: Long
        Installable Languages: 1
                en|US|iso8859-1
        Currently Installed Language: en|US|iso8859-1
 
Handle 0x00AE, DMI type 127, 4 bytes
End Of Table
 

See the complete list of Linux command to gathers up information about a Linux system

Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?

{ 57 comments… add one }

  • Venu February 15, 2008, 6:37 am

    Very useful commands. Thank you…

  • prash October 15, 2008, 9:28 am

    Nice commands, very useful.
    Thank you.

  • pavan February 3, 2009, 9:25 am

    Nice commands

    Thanks for the help

  • Chetan Saxena February 9, 2009, 3:47 pm

    Thanks Vivek Gite !

    It was very useful for me..

  • sud February 23, 2009, 12:39 pm

    very useful command

    thanks

  • rajkumar March 5, 2009, 11:05 am

    Thanks a lot helped me al ot

  • D.veera March 11, 2009, 9:13 am

    this commands very useful for me.

    thanks

  • srinu m April 6, 2009, 10:11 am

    Thanx for providing linux commands
    it is very helpful to linux users.

  • siva April 6, 2009, 7:02 pm

    very useful

  • Kasun April 26, 2009, 6:25 am

    thanks,
    also i need to find what FTP server is installed on my Remote Web Server via SSH,
    can you provide command for that?

    Thanks

  • A.Karthic Kumar May 6, 2009, 6:19 am

    Thank You,

    It was very useful to me

  • Kailash Murari May 20, 2009, 6:36 am

    Helped me a-lot, Thanks for these commands.

  • Chetan Saxena July 10, 2009, 11:11 am

    I got here what i was searching for.

    Thanks.

  • noor August 25, 2009, 12:07 pm

    Thank your for your help.
    and very usefull

    Best Regards.

  • sarfaraz August 26, 2009, 9:31 am

    Thank you sir verry helpful command

  • Srinivas October 7, 2009, 6:52 pm

    Very useful info. The precise question and answer are provided.

  • Khetra April 13, 2010, 4:37 am

    Hi Mr. Gite,
    Thank You, very useful information.

  • rissadum June 26, 2010, 1:41 pm

    nice commands, thanks alot

  • shabeer June 26, 2010, 5:18 pm

    Thank you very much .It is very useful

  • Arun July 1, 2010, 2:58 pm

    Thanks for the useful cmd

  • samir July 2, 2010, 10:06 am

    Thanks for this command.

  • semmalraja August 4, 2010, 12:02 pm

    very useful for me… thanks ya….

  • Jaydeep September 20, 2010, 9:53 am

    hey not useful for me…!

    I want some command which will tell me hw much graphics memory do I have and how much graphical memory is being used by a particular application…!

  • dozor October 6, 2010, 2:17 pm

    try lshw

  • Rushikesh October 14, 2010, 10:31 am

    thanks ..

  • M.r DEBNATH January 18, 2011, 8:56 am

    Very usefull……..

  • sandya February 19, 2011, 10:02 am

    The command was good enough,but we can even try with the most simple command:’top’
    will give the information,of both the cpu and memory information.

  • Praveen Adiga March 9, 2011, 8:16 am

    Good One

  • Sudharshana March 17, 2011, 10:24 am

    Very userful commands

  • Sagar Shedge April 12, 2011, 5:06 am

    It is really very good source of information related to system h/w.

  • naba April 20, 2011, 8:25 am

    very useful command thanks!

  • Ajee kumar N April 29, 2011, 7:31 am

    Thanks.. its very useful.. and we can use lshw and top commands….

  • Srinivas September 28, 2011, 7:46 pm

    Information is very helpful. Thank You

  • Shalmal October 19, 2011, 1:39 pm

    was very userful Thank u

  • santhosh kumar routhu December 21, 2011, 9:36 pm

    Thanks you very much that’s fine command for see all information about hardware:

  • MOTE PANDURANG January 28, 2012, 4:28 am

    this is useful information to us
    Thank You

  • Lars-Andreas February 10, 2012, 10:28 am

    I Tried to “vim” the files rather than “cat”ing them. I found that to be a bit more informal, but thats just my opinion. Thank you for the help anyways!

  • hanumanth March 12, 2012, 7:03 am

    thanks lot for your good service its more helpfull to who r searching cpu and mem information,,,,

  • Durga Prasad (DP) April 3, 2012, 5:25 am

    Very Usefull Command. But i think its not working in Fedora .. it is saying ” NO SUCH FILE OR DIRECTORY “

  • Amolraje May 29, 2012, 5:14 am

    Thanks,
    Generaly his command is very useful.

  • Abrar June 5, 2012, 6:29 am

    Thanks for the good work :)

  • vishwanath nair June 10, 2012, 2:55 am

    Thanks for system info command

    Linux Command to find the system configuration and hardware information

  • amit July 6, 2012, 5:37 am

    very easy way to know system info in linux

  • Deepak July 19, 2012, 9:34 am

    I am looking for the discovery tools(on Linux ) , should find me the following information,
    1.Number of servers, for each server determine the OS and the hardware configuration (RAM, CPU, and current utilization of CPU/RAM)
    2. Application stack running on the server
    a. Database servers
    b. Java applications
    c. C/C++ applications
    d. Other Enterprise applications

  • sizins August 26, 2012, 4:26 pm

    sudo dmidecode
    Will give u all h/w info

  • swapnil December 18, 2012, 6:44 am

    Thank You…>>!!!

  • Ajay February 4, 2013, 5:15 am

    Really handy…Thanks

  • Prashant June 13, 2013, 7:15 am

    Good command , Helpfull

  • Lahiru June 21, 2013, 4:16 am

    Very good information and its really hepfull

    Thanks

  • Thangapandi July 28, 2013, 6:04 am

    how to check system configuration with single command

  • SaintByte October 31, 2013, 11:23 pm

    i use this one “inxi”, one command -> full info
    inxi -F

  • hasan February 10, 2014, 7:10 pm

    Thank you!

  • Akhil May 1, 2014, 6:47 am

    Thanks it helped me a lot….

  • sunny kumar August 22, 2014, 8:38 am

    its really hepfull
    thanks

  • Benjamin October 22, 2014, 12:35 am

    Thank you for the command it is very useful.

  • Ramamoorthy Chithravelu June 4, 2015, 10:10 am

    Very Good info

  • Mohil June 15, 2015, 11:36 am

    Very Good and Useful info

Leave a Comment