This guide will help you understand how to check hardware information on Linux with dmidecode. Most Laptops have a limit on how much ram you can install on it. Knowing this limit will help you plan on the ram to have installed on your server or desktop.
What is dmidecode?
This is a tool used for dumping a computer’s DMI in a human-readable format. The data is printed in a tabular form and it contains a description of the system’s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision.
Check memory information on Linux with dmidecode:
To get all memory information details on a Linux server, run dmidecode with -t option as shown below.
From the output, you can get:
- Memory Maximum Capacity
- The number Of Devices
- RAM Form Factor e.g SODIMM e.t.c
- Installed device size
- Clock speed in MT/s
- Type e.g DDR4, DDR3 e.t.c.
You can further filter details with grep
$ sudo dmidecode -t memory | grep -i "maximum capacity" Maximum Capacity: 32 GB $ sudo dmidecode -t memory | grep -i "speed" Speed: 2133 MT/s Configured Clock Speed: 2133 MT/s Speed: 2133 MT/s Configured Clock Speed: 2133 MT/s
Check processor information on Linux with dmidecode
To view all processor related information, us the command:
From this you can get:
- CPU family
- Supported Flags
- Processor version e.t.c
For system information run:
# sudo dmidecode -t system
Get System UUID
To get your system UUID, run:
$ sudo dmidecode --string system-uuid 0B1B6E67-A5F9-6546-BCF6-A81E84B0E901
You can convert the output to lower case using:
$ sudo dmidecode --string system-uuid | tr '[:upper:]' '[:lower:]' 0b1b6e67-a5f9-6546-bcf6-a81e84b0e901
This will give you system information like hardware manufacturer, system family, product name, e.t.c. For a more detailed how-to guide, refer to:
# dmidecode --help Usage: dmidecode [OPTIONS] Options are: -d, --dev-mem FILE Read memory from device FILE (default: /dev/mem) -h, --help Display this help text and exit -q, --quiet Less verbose output -s, --string KEYWORD Only display the value of the given DMI string -t, --type TYPE Only display the entries of given type -u, --dump Do not decode the entries --dump-bin FILE Dump the DMI data to a binary file --from-dump FILE Read the DMI data from a binary file --no-sysfs Do not attempt to read DMI data from sysfs files --oem-string N Only display the value of the given OEM string -V, --version Display the version and exit