LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dmidecode

DMI/SMBIOS hardware information decoder

TLDR

Show all DMI table contents
$ sudo dmidecode
copy
Show the BIOS version
$ sudo dmidecode -s bios-version
copy
Show the system serial number
$ sudo dmidecode -s system-serial-number
copy
Show BIOS information
$ sudo dmidecode -t bios
copy
Show CPU information
$ sudo dmidecode -t processor
copy
Show memory information
$ sudo dmidecode -t memory
copy
Show system manufacturer and product name
$ sudo dmidecode -t system
copy
Dump DMI data to a binary file
$ sudo dmidecode --dump-bin [output.bin]
copy
List available string keywords
$ dmidecode --list-strings
copy

SYNOPSIS

dmidecode [-s keyword] [-t type] [--dump-bin file] [--from-dump file]

DESCRIPTION

dmidecode reads the DMI (Desktop Management Interface) table, also known as SMBIOS (System Management BIOS), and displays hardware information in a human-readable format. This includes details about the BIOS, system, baseboard, chassis, processor, memory, cache, connectors, and slots.The DMI data is read from /dev/mem or sysfs, depending on system availability.

PARAMETERS

-s, --string keyword

Only display the value of a specific DMI string (e.g., bios-vendor, bios-version, system-serial-number, system-uuid, processor-version, processor-frequency).
--list-strings
List all valid string keywords for use with -s.
-t, --type type
Only display entries of specified type. Can be a number, comma-separated list, or keyword (bios, system, baseboard, chassis, processor, memory, cache, connector, slot).
--list-types
List all valid type keywords for use with -t.
-H, --handle handle
Only display the entry matching the specified 16-bit handle value.
-q, --quiet
Less verbose output; suppresses unknown, inactive, and OEM-specific entries.
-u, --dump
Show raw DMI data as hexadecimal.
--dump-bin file
Dump DMI data to a binary file for later use with --from-dump.
--from-dump file
Read DMI data from a previously saved binary dump file.
--no-quirks
Decode table contents precisely without applying workarounds for common firmware bugs.
--no-sysfs
Do not attempt to read DMI data from sysfs files.
-d, --dev-mem file
Read memory from a device file other than /dev/mem.
--oem-string N
Display OEM string number N, or use "count" to show the total.
-h, --help
Display help.
-V, --version
Display version.

CAVEATS

Requires root privileges. Information accuracy depends on the BIOS/firmware implementation. Only works on x86 and x86_64 systems with SMBIOS-compliant firmware. The options -s, -t, and --dump-bin are mutually exclusive.

HISTORY

dmidecode was written by Alan Cox and is currently maintained by Jean Delvare. It provides a standardized way to access system hardware information through the SMBIOS standard on x86 and x86_64 systems.

SEE ALSO

lshw(1), lscpu(1), hwinfo(8), biosdecode(8), lspci(8)

Copied to clipboard
Kai