64

I want to get the BIOS version from Linux without going directly to the BIOS.

I mean, is there a way to get the BIOS version from inside Linux?

Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309
pro neon
  • 875
  • 1
  • 6
  • 16

4 Answers4

95

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
cuonglm
  • 150,973
  • 38
  • 327
  • 406
9

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*

GAD3R
  • 63,407
  • 31
  • 131
  • 192
5

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.

Prvt_Yadav
  • 5,732
  • 7
  • 32
  • 48
3

This is working for me:

sudo dmidecode | grep "BIOS Information" -A10 | grep -e "Version:" -e "Vendor:"
Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309
Siva
  • 9,017
  • 8
  • 56
  • 86