Config Server Firewall

Command to Get Motherboard Model in Linux

linux get motherboard model

In Linux, we can use the dmidecode command to get information about the Motherboard. Alternatively, you can also use the lshw command.

To get the motherboard model, run the dmidecode command as follows:

dmidecode --type 2

The above command will produce output that will look something like the following:

Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: ASUSTeK COMPUTER INC.
	Product Name: TUF GAMING X570-PLUS (WI-FI)
	Version: Rev X.0x
	Serial Number: 23085307510042
	Asset Tag: Default string
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: Default string
	Chassis Handle: 0x0003
	Type: Motherboard
	Contained Object Handles: 0

We can also provide baseboard as the keyword to the --type argument:

dmidecode --type baseboard

If you want to check the BIOS version, execute the following command:

dmidecode --type 0

You can use the dmidecode command to check the motherboard model on any Linux distribution (Debian, Ubuntu, Fedora, CentOS, etc.).

lshw and hwinfo are the two other commands that you can use to get hardware information on Linux.