Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check the BIOS version or name in Linux through a command prompt? [closed]

I want to retrieve the current BIOS version and name while working on the terminal.

What could be the commands to find it?

like image 697
CuriousCase Avatar asked Dec 16 '13 06:12

CuriousCase


People also ask

How check BIOS settings without rebooting Linux?

Is it possible to see BIOS settings without rebooting the server? You can use the biosdecode and dmidecode commands to get BIOS settings from the CLI. The biosdecode command parses the BIOS memory and prints information about all structures.

Is there a BIOS in Linux?

The first step in the Linux boot process is the BIOS which performs system integrity checks. The BIOS is a firmware that comes most common in IBM PC compatible computers, the dominant type of computers out there today.


2 Answers

BIOS version is exposed through the SMBIOS tables. On Linux, we can access this with dmidecode (which requires root privileges to run).

To show only BIOS information, use -t bios to specify that we only want to see entries of the type BIOS, and -q to silence unnecessary output.

# 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 

To get just the BIOS version information, use -s to specify certain strings:

# dmidecode -s bios-vendor Phoenix Technologies LTD # dmidecode -s bios-version 6.00 # dmidecode -s bios-release-date 02/22/2012 
like image 106
Jonathon Reinhart Avatar answered Sep 20 '22 19:09

Jonathon Reinhart


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:

  • bios_date
  • bios_vendor
  • bios_version
  • product_family
  • product_name
  • product_serial
  • product_version

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.)

like image 26
Marius Gedminas Avatar answered Sep 18 '22 19:09

Marius Gedminas