CmdID

CmdID / Commands

selinuxenabled

Check whether SELinux is enabled. tldr-pages

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Check whether SELinux is enabled. Returns exit code 0 if SELinux is enabled, and 1 if it is not.

Check if SELinux is enabled (no output; check exit code with echo $?)

selinuxenabledIdentify

Check if SELinux is enabled and print the result

selinuxenabled && echo "SELinux is enabled" || echo "SELinux is disabled"Identify

Use in a shell script to conditionally execute commands

if selinuxenabled; then echo "SELinux is running"; fiIdentify