分辨是否為UEFI

Ifurther
·
·
IPFS
·
分辨是否為UEFI

稍微整理Linux和Windows的指令


Windows裡進入PowerShell裡面輸入:

$env:firmware_type

會有兩種結果分別為UEFI和Legacy(BIOS)

Linux在任意的命令列裡面輸入:

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

會有兩種結果分別為UEFI和BIOS

不過在Linux有時候會不太準確,因為早期BIOS預設使用傳統開機,所以偵測的時候會錯


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!