Secure Boot – checking activation or not
On Linux in the Bash you have two commands for this
(sudo) mokutil – -sb-state

or
bootctl status | grep „Secure Boot“ 2
If you don’t want to see the error messages, then you can do
bootctl status 2>/dev/null | grep „Secure Boot“
Attention:
bootctl status | grep „Secure Boot“ 2 >/dev/null
does not work.