Report issue Add example

getenforce

Display the current SELinux enforcement mode (Enforcing, Permissive, or Disabled).

Supplemental Information

The getenforce command is used to check the current operating mode of SELinux.

Syntax

getenforce

Examples

Check the current SELinux enforcement mode:

[root@localhost ~]# getenforce
Enforcing