How to get hardware info using dmidecode

Information about RAM from dmidecode
Information about RAM from dmidecode

dmidecode is an useful application on Linux to obtain hardware information from DMI or SMBIOS of your system.

This application is typically installed on Ubuntu. If not, it is easy to get it:

$ sudo apt install dmidecode

Running it without any parameters, dumps all the info it knows:

$ sudo dmidecode

Instead, what you typically need is info about a specific part of your computer. This can be dumped using the --type parameter. Please see man dmidecode to find out all the values of integers that can be passed to this parameter.

For example, to get information about the RAM (memory) slots on your computer:

$ sudo dmidecode --type 17

Tried with: DMIDecode 2.12 and Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s