Display the current SELinux enforcement mode (Enforcing, Permissive, or Disabled).
The getenforce command is used to check the current operating mode of SELinux.
getenforce
Check the current SELinux enforcement mode:
[root@localhost ~]# getenforce
Enforcing