Security
getenforce
Displays the current SELinux mode.
CentOS
Verified: 2026-02-09
Syntax
$getenforce
Examples
$getenforce
Typical use cases
?
Standard usage
getenforce --help
Note
Quick one-liners for monitoring scripts.
Export