Home > Package & System Management > dmidecode

dmidecode Command Guide

`dmidecode` is a tool that outputs information from the DMI (Desktop Management Interface) table in a human-readable format. It is useful for checking hardware specifications of the system, particularly information about the motherboard, BIOS, and memory.

Installation Method

`dmidecode` may not be installed by default on most Linux systems. You can install it using the command below.

Debian/Ubuntu

sudo apt-get install dmidecode

Uses the APT package manager.

CentOS/Fedora/RHEL

sudo yum install dmidecode
# or
sudo dnf install dmidecode

Uses the YUM or DNF package manager.

Key Options

These are the core options of `dmidecode` that allow you to filter and output various hardware information.

1. Basic Query

Generated command:

Try combining the commands.

Description:

`dmidecode` Executes the command.

Combine the above options to virtually execute commands with AI.

Key Usage Examples

Practical examples of using the `dmidecode` command to check system information.

Check Motherboard Information

sudo dmidecode -t baseboard

Checks the manufacturer, product name, serial number, etc., of the motherboard.

Check BIOS Information

sudo dmidecode -t bios

Checks the vendor, version, release date, etc., of the BIOS.

Check Memory (RAM) Slot Information

sudo dmidecode -t memory

Checks total memory capacity, number of slots, and type and speed of RAM installed in each slot.

Check CPU Information

sudo dmidecode -t processor

Checks the manufacturer, model name, maximum speed, etc., of the CPU.

Cautions

Points to consider when checking DMI information.

Characteristics of DMI Information

`dmidecode` reads DMI information recorded in the hardware itself, so the output information may differ in a virtualized environment (VM) compared to a physical server. It may show information about the virtual hardware assigned to the virtual machine.

  • Commands usually need to be executed with `sudo` privileges.
  • In virtual machines, it may display differently from actual hardware information.
  • Using `less` or `grep` can be convenient due to the large amount of output information.

Example of Searching for Specific Information

sudo dmidecode | grep "Manufacturer"

You can quickly find specific manufacturers or model names using `grep`.


Same category commands