如何使用命令行了解主板BIOS版本

我想知道我主板的BIOS版本……

命令dmidecode为您提供有关BIOS的一些信息,但我找不到我需要的…

所以任何人都可以帮忙?!


在询问之前我尝试了dmidecode命令,但是我没找到我需要的东西 – 我只想要BIOS版本,输出中没有别的

我得到了解决方案。

使用dmidecode(当然),但问题出在结果上……

我不想列出关于我的BIOS的块结果我只需要版本..

命令是:

 sudo dmidecode -s bios-version 

输出将只打印版本:

SIX7910J.86A.0537.2012.0723.1217

试试这个命令,

 sudo dmidecode | less 

在此处输入图像描述

dmidecode通常返回一个包含BIOS信息的块。 它应该看起来像这样:

 BIOS Information Vendor: American Megatrends Inc. Version: 0309 Release Date: 04/18/2013 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 8192 kB Characteristics: PCI is supported APM is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported BIOS ROM is socketed EDD is supported 5.25"/1.2 MB floppy services are supported (int 13h) 3.5"/720 kB floppy services are supported (int 13h) 3.5"/2.88 MB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) ACPI is supported USB legacy is supported BIOS boot specification is supported Targeted content distribution is supported UEFI is supported BIOS Revision: 4.6 

此处的信息包括版本BIOS修订版 。 如果dmidecode不包含您机器上的数据,我担心您将不得不重新启动并实际查看BIOS。

减少DMIDECODE输出的另一种方法是将它移植到Grep并只提取你想要的行 –

EG – sudo dmidecode | grep’供应商\ |版本:V \ | BIOS修订版\ |处理器’

在grep中,每个“或” (垂直条)需要使用反斜杠前缀进行转义,如上所示。

供应商之后可能会有一些额外的杂项“版本”; 你应该能够找出什么是什么而忽略其余的。 我还没想出要消除这些… 😉

奖金! 上面还包含了处理器信息。