I want to retrieve the current BIOS version and name while working on the terminal.
What could be the commands to find it?
On
you can use dmidecode. dmidecode support following operating systems
Linux i386, x86-64, ia64
FreeBSD i386, amd64
NetBSD i386, amd64
OpenBSD i386, amd64
BeOS i386
Cygwin i386
Solaris x86
Haiku i586
On
You can also cat /sys/class/dmi/id/bios_version without having to run dmidecode as root.
/sys/class/dmi/id contains also other interesting files:
A quick overview of them all can be obtained with
head /sys/class/dmi/id/*
(I use head because it prints the name of the file above the first few lines of the file contents.)
BIOS version is exposed through the SMBIOS tables. On Linux, we can access this with
dmidecode(which requiresrootprivileges to run).To show only BIOS information, use
-t biosto specify that we only want to see entries of the type BIOS, and-qto silence unnecessary output.To get just the BIOS version information, use
-sto specify certain strings: