Last active
February 19, 2021 17:00
-
-
Save Cosmologist/220010ada31da7beed07a94fc76f79b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Show running mode (UEFI or BIOS) of your system." | |
echo "@see https://askubuntu.com/a/947856" | |
echo "" | |
mode=$(test -d /sys/firmware/efi && echo UEFI || echo BIOS) | |
echo "System runnging in mode: $mode" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment