How to check if secure boot is enabled on Ubuntu?

On the command line, run

check_secure_boot.sh
sudo mokutil --sb-state​

This will tell you

secureboot-enabled.txt
SecureBoot enabled​_

if secure boot is currently active on your machine or

secureboot-disabled.txt
SecureBoot disabled

else.

In case you see an error message like

error.txt
bash: command not found: mkoutil

you need to install mokutil first using

install_mokutil.sh
sudo apt install mokutil​_

Check out similar posts by category: Linux