How to check if secure boot is enabled on Ubuntu?

On the command line, run

sudo mokutil --sb-state​

This will tell you

SecureBoot enabled​_

if secure boot is currently active on your machine or

SecureBoot disabled

else.

In case you see an error message like

bash: command not found: mkoutil

you need to install mokutil first using

sudo apt install mokutil​_