Linux узнать версию bios

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.

Читайте также:  Linux samba пароль пользователя

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.

Источник

Проверка версии BIOS в Linux

Столкнулись с тем, что некоторые выделенные серверы с отличающимися версиями BIOS работают совершенно по-разному. Поэтому требовалось сообщить в ДЦ самую подходящую прошивку. Узнать версию в linux очень просто, достаточно дать в консоли команду от root:

dmidecode | grep 'BIOS Information' -A 30

dmidecode | grep ‘BIOS Information’ -A 30

Выхлоп этой команды представлен ниже. Версия биос в данном случае — Version: P80

BIOS Information
Vendor: hp
Version: P80
Release Date: 04/02/2015
Address: 0xF0000
Runtime Size: 64 kB
ROM Size: 8192 kB
Characteristics:
PCI is supported
PNP is supported
BIOS is upgradeable
BIOS shadowing is allowed
ESCD support is available
Boot from CD is supported
Selectable boot is supported
EDD is supported
5.25″/360 kB floppy services are supported (int 13h)
5.25″/1.2 MB floppy services are supported (int 13h)
3.5″/720 kB 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)
CGA/mono video services are supported (int 10h)
ACPI is supported
USB legacy is supported
BIOS boot specification is supported
Function key-initiated network boot is supported
Targeted content distribution is supported
Firmware Revision: 2.42

Читайте также:  Remove mysql in linux

Источник

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 

Источник

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.

Читайте также:  Linux группа пользователя сервер

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

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.

Источник

Linux: Поиск версии BIOS с помощью опции командной строки

Чтобы узнать версию BIOS в операционных системах Linux, используйте команду dmidecode, которая является инструментом для анализа данных BIOS. Для выполнения команды dmidecode необходимо войти в систему под пользователем root.

Команда Linux для определения версии BIOS

Введите следующую команду dmidecode от имени пользователя root:

dmidecode | less

Как проверить версию прошивки BIOS в Linux

В этом примере отобразите версию BIOS с помощью опции -s. Например:

sudo dmidecode -s bios-version

sudo dmidecode -s bios-version

Для получения дополнительной информации попробуем воспользоваться примером bash for loop:

for d in system-manufacturer system-product-name bios-release-date bios-version do echo "$ : " $(sudo dmidecode -s $d) done

Linux Узнайте версию BIOS с помощью команды dmidecode

Используйте команду dmidecode в Linux, чтобы узнать версию BIOS, дату выпуска и многое другое.

Также можно вывести всю информацию, связанную с BIOS, используя следующий синтаксис:

Источник

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