LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dmidecode

DMI/SMBIOS hardware information decoder

TLDR

Dump the whole DMI table
$ sudo dmidecode
copy
Read a single value by keyword
$ sudo dmidecode --string system-serial-number
copy
List the keywords that can be read this way
$ dmidecode --list-strings
copy
Show one table type by name
$ sudo dmidecode --type memory
copy
Show the installed DIMMs, with size and speed
$ sudo dmidecode --type 17
copy
List the type names and numbers available
$ dmidecode --list-types
copy
Show the BIOS vendor, version and release date
$ sudo dmidecode --type bios
copy
Show several types in one run
$ sudo dmidecode --type baseboard --type chassis
copy
Look up a single structure by its handle
$ sudo dmidecode --handle [0x1000]
copy
Drop the banner and handle lines, for scripting
$ sudo dmidecode --quiet --type system
copy
Save the raw table for analysis elsewhere
$ sudo dmidecode --dump-bin [path/to/dmi.bin]
copy
Read a saved dump, which needs no root
$ dmidecode --from-dump [path/to/dmi.bin]
copy
Show the raw hex beside the decoded output
$ sudo dmidecode --dump
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.

INSTALL

sudo apt install dmidecode
copy
sudo dnf install dmidecode
copy
sudo pacman -S dmidecode
copy
sudo apk add dmidecode
copy
sudo zypper install dmidecode
copy
nix profile install nixpkgs#dmidecode
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid