dmidecode – read hardware information from BIOS

-
-

dmidecode reads hardware information from the system’s DMI (Desktop Management Interface) table, providing details about BIOS, motherboard, CPU, memory, and more.

Synopsis

dmidecode [OPTIONS]

Common Options

OptionDescription
-t TYPEShow specific type
-s STRINGShow specific string
-qLess verbose

Examples

All hardware info

$ sudo dmidecode

System information

$ sudo dmidecode -t system
System Information
    Manufacturer: Dell Inc.
    Product Name: PowerEdge R640
    Serial Number: ABC1234

BIOS information

$ sudo dmidecode -t bios
BIOS Information
    Vendor: Dell Inc.
    Version: 2.12.2
    Release Date: 01/15/2024

Memory information

$ sudo dmidecode -t memory

Processor information

$ sudo dmidecode -t processor

Get specific string

$ sudo dmidecode -s system-manufacturer
Dell Inc.

$ sudo dmidecode -s system-serial-number
ABC1234

DMI Types

TypeDescription
0BIOS
1System
2Baseboard
3Chassis
4Processor
16Physical Memory Array
17Memory Device

Common Patterns

Get server model

$ sudo dmidecode -s system-product-name

Get total RAM slots and capacity

$ sudo dmidecode -t 16

Check memory modules

$ sudo dmidecode -t 17 | grep -E "Size|Type|Speed"

Tips

  • Requires root: Need sudo for DMI access
  • Virtual machines: Shows hypervisor info
  • Dell/HP/Lenovo: Great for service tag lookup
  • Memory planning: Check empty slots and max capacity

See Also

  • lscpu — CPU information
  • lshw — List hardware
  • free — Memory usage

Tutorials