Get System Hardware information using ‘dmidecode’ command in Linux — LinuxTechLab
DMIDECODE command in Linux is used fetch the complete system hardware information. It can information like Serial Numbers, Part number etc for all the hardware components like CPU, RAM, HDD etc. We can also get information related to system BIOS.
DMIDECODE command in Linux is actually fetched data from DMI table or Desktop Management Interface Table & produced it in human-readable format, hence it’s also called DMI Table Decoder.
In this tutorial, how we can get system hardware information using DMIDECODE command in Linux.
Recommended Read: How to use SCP & RSYNC command line options to Backup your System Also Read: Monitoring Linux system resources using SAR (System Activity Report)
DMIDECODE COMMAND in Linux
Syntax for using Demidecode command in similar to any other Linux command, i.e. COMMAND followed by an OPTION,
Let’s discuss some examples for using it.
1- Complete hardware information
Simply running dmidecode command without the use of any option will provide the complete list of hardware on the system as well their complete information,
But the complete list is quite long, so we can either redirect the output to a file to read it with ease or we can make the output scrollable with the use of ‘more’ command in addition to dmidecode command,
# dmidecode > harware_information.txt
OR 2- Get information related to single system component
We can fetch complete information for a single system component as well rather than having to search through the complete system information. For this we can use option ‘-t’ or ‘ — type’.
For example
Get the BIOS information by the using the following, Command to get hardware information for baseboard is,
Similarly there are other parameters that we can use with ‘-t’. Here is the complete list of the parameters that we can use,
3-Some other options for using with DMIDECODE
Though we have mentioned the examples of important dmidecode commands above but there are other options as well that we can use. Get the complete list of options by using the help with demidecode command,
This completes out tutorial on how to get system information using Dmidecode command in Linux, Please do let us know if you have any concerns or queries using the comment box below.
Originally published at https://linuxtechlab.com on March 31, 2021.