Skip to content

Linux dmidecode command

dmidecode is a command-line utility in Linux that allows users to retrieve detailed information about their hardware components such as BIOS, motherboard, RAM, and more. By parsing data from the DMI (Desktop Management Interface) tables stored in the system BIOS, dmidecode provides a comprehensive view of the system’s hardware configuration. This tool is especially useful for system administrators and users troubleshooting hardware-related issues or looking to gather detailed information about their system. With dmidecode, users can access vital details like manufacturer, model, serial number, version, and characteristics of various hardware components. Additionally, the output from dmidecode can be redirected to a text file for further analysis or documentation purposes.

dmidecode Syntax:

Terminal window
dmidecode [options] [parameter]

Options:

OptionDescription
-sSpecify a keyword to search for in the SMBIOS data and print the result.
-tSelect a specific type to display the structure.
-uShow full SMBIOS data dump in a human-readable format.
-qDisplay the DMI (Desktop Management Interface) data in a brief format.
-VDisplay the version of dmidecode.

Parameters:

ParameterDescription
biosPrint BIOS information.
systemPrint system information.
baseboardPrint baseboard (or motherboard) information.
chassisPrint chassis information.
processorPrint processor information.
memoryPrint memory information.
cachePrint cache information.
connectorPrint connector information.
slotPrint slot information.
devicePrint device information.
processor.poPrint processor power information.
memory.errorPrint memory error information.
raPrint remote access information.
oemPrint OEM-specific strings.
system.eventPrint system event log.
bios.bootPrint boot-time configuration.
bios.acpPrint ACP tables.
bios.slatePrint SLIC table.
processor.cPrint CPU information using CPUID instruction.
memory.colPrint memory array MCA (Machine Check Architecture) information.
memory.devPrint memory device MCA information.
memory.erPrint memory error information.
memory.arPrint 32-bit failure information.
memory.15Print 16-bit failure information.
memory.24Print 24-bit failure information.
onverterPrint system power supply converter information.
utputPrint System Management BIOS (SMBIOS) information from FILE.

dmidecode Usage:

Display System Information

Terminal window
dmidecode

This command displays various system information by decoding the system DMI (Desktop Management Interface) data.

Output BIOS Information

Terminal window
dmidecode -t bios

Using the -t option with the argument “bios” displays detailed information about the system BIOS.

Show Processor Information

Terminal window
dmidecode -t processor

With the -t option and “processor” as the argument, this command shows detailed information about the system’s processors.

Retrieve Memory Details

Terminal window
dmidecode -t memory

By specifying the argument “memory” with the -t option, this command provides detailed information about the system’s memory modules.

Common Questions on dmidecode Usage:

How can I display the system’s DMI table using dmidecode in Linux?

To display the system’s DMI (Desktop Management Interface) table in Linux using dmidecode, run the following command:

Terminal window
sudo dmidecode

How can I filter specific DMI type information with dmidecode in Linux?

To filter specific DMI type information using dmidecode in Linux, you can specify the DMI type number with the -t option. For example, to display information about the system’s baseboard, you can use:

Terminal window
sudo dmidecode -t 2

How can I save the output of dmidecode to a file in Linux?

To save the output of dmidecode to a file in Linux, you can use output redirection with the > symbol. For example, to save the DMI data to a file named “dmidecode_output.txt”, you can run:

Terminal window
sudo dmidecode > dmidecode_output.txt

How can I show hardware information in a human-readable format using dmidecode in Linux?

To view hardware information in a more human-readable format with dmidecode in Linux, use the -t option followed by the DMI type number. For instance, to display the processor information in a readable format, run:

Terminal window
sudo dmidecode -t 4

How can I get the BIOS information using dmidecode in Linux?

To retrieve BIOS information with dmidecode in Linux, you can use the -t option and specify the DMI type number for BIOS. To display BIOS information, run:

Terminal window
sudo dmidecode -t 0

How can I get the memory module details with dmidecode in Linux?

To get detailed information about memory modules installed on the system using dmidecode in Linux, you can specify the DMI type number for memory devices. Run the following command to display memory module details:

Terminal window
sudo dmidecode -t 17

How can I filter information based on keyword search in dmidecode output in Linux?

To filter information based on a keyword search in the dmidecode output in Linux, you can use tools like grep. For example, to search for information related to “Serial Number,” you can pipe the dmidecode output to grep:

Terminal window
sudo dmidecode | grep "Serial Number"

Applications of the dmidecode command

  • Retrieve hardware information
  • Check BIOS details
  • View motherboard information
  • Identify system’s serial number
  • Obtain memory module details
  • Determine CPU information
  • Verify system manufacturer and product names
  • Display system firmware information