Linux get bios version

Check BIOS Version in Ubuntu Linux – Command

BIOS is a firmware interface between a computer’s hardware and the operating system and like any software, it can be updated.

Knowing the BIOS version can tell you if you have the most up-to-date version of the BIOS or it has to be updated.

This note shows how to check the BIOS version in Ubuntu Linux from the command-line, though these commands should work for the other Linux systems as well.

Cool Tip: How to create a swap file in Linux! Read more →

Check BIOS Version in Linux

In Linux, to get the complete information about the computer’s BIOS from the command-line, use the dmidecode command:

$ sudo dmidecode -t bios -q --- BIOS Information Vendor: American Megatrends Inc. Version: UX31A.219 Release Date: 06/14/2013 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 6144 kB Characteristics: PCI is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported BIOS ROM is socketed EDD is supported 5.25"/1.2 MB floppy services are supported (int 13h) 3.5"/720 kB floppy services are supported (int 13h) 3.5"/2.88 MB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) ACPI is supported USB legacy is supported Smart battery is supported BIOS boot specification is supported Targeted content distribution is supported UEFI is supported BIOS Revision: 4.6 BIOS Language Information Language Description Format: Long Installable Languages: 1 en|US|iso8859-1 Currently Installed Language: en|US|iso8859-1

To check the BIOS version only, you can run the dmidecode command as follows:

$ sudo dmidecode -s bios-version --- UX31A.219

Источник

Читайте также:  Пропадают буквы astra linux

How to know the motherboard BIOS version using the command line

How can get the BIOS version of my motherboard? The command dmidecode gives you some information about the BIOS, but I can’t find what I need. I tried dmidecode command before asking and I didn’t find what I needed — I want only the BIOS version and nothing else in the output.

Please make sure your question accurately reflects what you are looking for. In this case, you appearently are looking for a way to print only the BIOS version instead of all the information including the BIOS version.

@drc I state that. Read the question again please i just say i want the bios version and i state that i use dmidecode but i can’t find the version

Finding the BIOS version is as easy as looking for the string Version in the BIOS Information block, as multiple answers said. If you are looking for a way to print only this version string, say so.

4 Answers 4

Using dmidecode (of course), but the problem was with the result.

I don’t want to list block result about my bios I just need the version..

sudo dmidecode -s bios-version 

The output will just print the version:

Also, from the dmidecode man page: «Note: on Linux, most of these strings can alternatively be read directly from sysfs, typically from files under /sys/devices/virtual/dmi/id. Most of these files are even readable by regular users.» So it seems you can do cat /sys/devices/virtual/dmi/id/bios_version or even cat /sys/devices/virtual/dmi/id/bios_* without the need for sudo .

enter image description here

@Maythux is wrong. I ran Avinash’s command on my PC and it does indeed show the BIOS version. I can even use vim-like commands, so I’d say it’s better than Maythux’s answer.

dmidecode usually returns, amongst other things, a block with information about your BIOS. It should look something like this:

BIOS Information Vendor: American Megatrends Inc. Version: 0309 Release Date: 04/18/2013 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 8192 kB Characteristics: PCI is supported APM is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported BIOS ROM is socketed EDD is supported 5.25"/1.2 MB floppy services are supported (int 13h) 3.5"/720 kB floppy services are supported (int 13h) 3.5"/2.88 MB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) ACPI is supported USB legacy is supported BIOS boot specification is supported Targeted content distribution is supported UEFI is supported BIOS Revision: 4.6 

The information here includes both version and BIOS revision. If dmidecode does not include that data on your machine, I’m afraid you will have to reboot and actually look at the BIOS.

Читайте также:  Tp link usb wifi driver linux

Источник

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

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?

4 Answers 4

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

$ 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:

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.

sudo dmidecode | grep "BIOS Information" -A10 | grep -e "Version:" -e "Vendor:" 

This sort of text filtering is fragile. Much better to make a specific request for the specific information you want, as shown by cuonglm.

You must log in to answer this question.

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Читайте также:  Установка настройка линукс сервера

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533

Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group.
This site is not affiliated with Linus Torvalds or The Open Group in any way.

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

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

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

I want to retrieve the current BIOS version and name while working on the terminal. What could be the commands to find it?

3 Answers 3

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 

Источник

Оцените статью
Adblock
detector