Identify whether it is UEFI

Ifurther
·
·
IPFS
·
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 and clap, let me know that you are with me on the road of creation. Keep this enthusiasm together!