Ifurther
Ifurther

Identify whether it is UEFI

Identify whether it is UEFI

Slightly tidying up the instructions for Linux and Windows


In Windows, enter PowerShell and enter:

 $env:firmware_type

There will be two results: UEFI and Legacy (BIOS)

In Linux, enter in any command line:

 if test -d /sys/firmware/efi;then echo efi;else echo bios;fi

There will be two results for UEFI and BIOS

However, it is sometimes inaccurate in Linux, because the early BIOS defaults to use traditional boot, so the detection will be wrong.


CC BY-NC-ND 2.0

Like my work?
Don't forget to support or like, so I know you are with me..

Loading...

Comment