Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to get hardware info using dmidecode

📅 2015-Jan-07 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ dmidecode, ram ⬩ 📚 Archive

[caption id="attachment_5420" align="aligncenter" width="576"][Information about RAM from dmidecode]( Information about RAM from dmidecode[/caption]

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