Is there a way to get the BIOS version from inside Linux?

Without superuser privileges

It is as simple as reading the following file:

$ cat /sys/class/dmi/id/bios_version
1.1.3

With superuser privileges

Use dmidecode:

$ sudo dmidecode -s bios-version
1.1.3

Also, you might have to install this package, which is available in:

  • Linux i386, x86-64, ia64
  • FreeBSD i386, amd64
  • NetBSD i386, amd64
  • OpenBSD i386, amd64
  • BeOS i386
  • Solaris x86
  • Haiku i586

You can use lshw , hwinfo , inxi and hardinfo (DMI):

# lshw -class memory
# hwinfo --bios
$ inxi -M
$ hardinfo

The above command should work after installing them through your package manager.

Only the first answer proposed by @cuonglm allow you the get bios information without installing an additional package:

$ cat /sys/class/dmi/id/bios*


I was wandering in /sys folder then I went into /sys/firmware/dmi/tables then got two files DMI and smbios_entry_point. If you read DMI file then in my case first word was LENOVO and second word was BIOS version. I know this is not simple and straight answer but you can get more information regarding your pc from this file.

Tags:

Linux

Bios