linux - 如何通过命令提示符检查 Linux 中的 BIOS 版本或名称?

我想在终端上工作时检索当前的 BIOS 版本和名称。

找到它的命令是什么?

最佳答案

BIOS 版本通过 SMBIOS 公开表。在 Linux 上,我们可以使用 dmidecode 访问它。 (需要 root 权限才能运行)。

要仅显示 BIOS 信息,请使用 -t bios 指定我们只希望查看 BIOS 类型的条目,并使用 -q 将不必要的输出静音。

# dmidecode -t bios -q
BIOS Information
        Vendor: Phoenix Technologies LTD
        Version: 6.00
        Release Date: 02/22/2012
        Address: 0xE72C0
        Runtime Size: 101696 bytes
        ROM Size: 64 kB
        Characteristics:
                ISA is supported
                PCI is supported
                ...
        BIOS Revision: 4.6
        Firmware Revision: 0.0

要仅获取 BIOS 版本信息,请使用 -s 指定某些字符串:

# dmidecode -s bios-vendor
Phoenix Technologies LTD
# dmidecode -s bios-version
6.00
# dmidecode -s bios-release-date
02/22/2012

https://stackoverflow.com/questions/20604644/

相关文章:

linux - 使用 shell 脚本将行附加到/etc/hosts 文件

linux - 双斜杠//in `cd//` 在 Linux 中是什么意思?

c - 如何知道linux调度器时间片?

c - Linux 中的 bluetooth/bluetooth.h 位于何处?

linux - 通过 linux x86-64 函数调用保留了哪些寄存器

c - 枚举中这些#define 的目的是什么?

linux - 进程可以拥有的每个不同 UID 的目的是什么?

linux - 我可以阅读 Linux 内核的哪些部分以获得乐趣?

linux - 如何在 Linux 上记录内存消耗?

linux - 从 FTP 服务器下载所有文件