dmidecode命令可以用来在Linux系统下获取硬件方面的信息。dmidecode遵循SMBIOS/DMI标准,其输出的信息包括BIOS、处理器、内存、缓存等。
dmidecode命令的参数选项及说明
-t 只显示指定条目
-s 只显示指定DMI字符串的信息
-q 精简输出
[root@linuxprobe ~]# dmidecode -s system-product-name
VirtualBox
[root@linuxprobe ~]# dmidecode -s system-serial-name
Invalid string keyword: system-serial-name
Valid string keywords are:
bios-vendor
bios-version
bios-release-date
system-manufacturer
system-product-name
system-version
system-serial-number
system-uuid
system-family
baseboard-manufacturer
baseboard-product-name
baseboard-version
baseboard-serial-number
baseboard-asset-tag
chassis-manufacturer
chassis-type
chassis-version
chassis-serial-number
chassis-asset-tag
processor-family
processor-manufacturer
processor-version
processor-frequency
[root@linuxprobe ~]# dmidecode -s system-serial-number
0
[root@linuxprobe ~]# dmidecode -t memory