Check system info with dmidecode
In this step, you'll learn how to use the dmidecode
command to retrieve detailed information about your system's hardware. dmidecode
reads data from the DMI/SMBIOS (Desktop Management Interface / System Management BIOS) table, which contains descriptions of the system's components.
This command is incredibly useful for understanding the specifics of the hardware your Linux system is running on, such as the motherboard, CPU, memory, and more.
Since accessing the DMI table requires root privileges, you'll need to use sudo
with dmidecode
.
Open your terminal if it's not already open. Remember, you can find the Xfce Terminal icon on the left side of your desktop.
Now, type the following command and press Enter:
sudo dmidecode
This command will output a large amount of information about your system's hardware. Scroll through the output to see the different sections, such as "BIOS Information", "System Information", "Base Board Information", "Processor Information", "Memory Device", etc.
The output might look something like this (parts of the output are omitted for brevity):
## dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.
Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
Vendor: SeaBIOS
Version: 1.16.0-1.fc36
Release Date: 07/07/2022
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 64 kB
Characteristics:
PCI is supported
BIOS is upgradeable
BIOS shadowing is allowed
Boot from CD is supported
Selectable boot is supported
BIOS ROM is socketed
EDD is supported
5.25" / 1.2 MB floppy services are supported (int 13h)
3.5" / 720 kB floppy services are supported (int 13h)
3.5" / 1.44 MB floppy services are supported (int 13h)
8042 keyboard services are supported (int 9h)
CGA/mono video services are supported (int 10h)
AT/XT compatible keyboard services are supported (int 16h)
Printer services are supported (int 17h)
CGA/mono video is supported (int 10h)
ACPI is supported
USB legacy is supported
BIOS boot specification is supported
Targeted content distribution is supported
UEFI is supported
BIOS Revision: 1.16
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: QEMU
ProductName: Standard PC (Q35 + ICH9, 2009)
Version: pc-q35-7.0
Serial Number: <filtered>
UUID: <filtered>
Wake-up Type: Power Switch
SKU Number: <filtered>
Family: Virtual Machine
Handle 0x0002, DMI type 2, 17 bytes
Base Board Information
Manufacturer: QEMU
ProductName: Standard PC (Q35 + ICH9, 2009)
Version: pc-q35-7.0
Serial Number: <filtered>
Asset Tag: <filtered>
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: <filtered>
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0
... (output continues)
You can also filter the output to see information about a specific type of hardware using the -t
option followed by the type number or keyword. For example, to see only the CPU information, you can use:
sudo dmidecode -t processor
Or, to see information about the memory devices:
sudo dmidecode -t memory
Experiment with different types like bios
, system
, baseboard
, chassis
, etc., to see the specific details for each component.
Using dmidecode
is a fundamental skill for system administrators and anyone who needs to troubleshoot hardware issues or simply understand the underlying system configuration.
Click Continue to proceed to the next step.