Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
179
rated 0 times [  179] [ 0]  / answers: 1 / hits: 182795  / 2 Years ago, sun, june 26, 2022, 1:51:22

How do I determine whether a particular running Ubuntu system was booted using EFI/UEFI, or BIOS?


More From » boot

 Answers
1

The easiest way is to check to see if /sys/firmware/efi exists. It does not appear if you booted using traditional BIOS.


#!/bin/bash
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

[#36917] Sunday, June 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cisccla

Total Points: 66
Total Questions: 134
Total Answers: 115

Location: Croatia
Member since Fri, Sep 11, 2020
4 Years ago
;