In linux, dmidecode is used to view hardware information.
Source: Internet
Author: User
Here, we use dmidecode in linux to view the hardware information-Linux general technology-Linux technology and application information. The following is a detailed description. Dmidecode is a tool for dumping a computer ''' s DMI (some say SMBIOS) table contents in a human-readable format. this table contains a description of the system ''' s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. thanks to this table, you can retrieve this information without having to probe for the actual hardware. while this is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable.
Dmidecode comprehensively displays bios, cpu, memory, and other hardware information.
View the serial number of the motherboard
Dmidecode | grep "Serial Number"
Displays the number of physical memory blocks.
Dmidecode | grep-A16 "Memory Device $"
Display CPU Information
Dmidecode | grep-A42 "Processor" | more
In addition:
Grep-An (A and n can also have spaces) to output rows containing the specified string and n rows following the row
/Usr/sbin/dmidecode | grep "Serial Number" can read the computer ID. Of course, this is only valid for machines of regular brands, such as DELL and HP, the retrieved value corresponds to the value posted on the machine. Similar to the compatible machine of the Qinghua Tongfang stream, basically no meaningful data can be read.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service