Cmd Generator

getenforce

Get the current SELinux mode.

getenforce

No options required. Just run the command to see whether SELinux is Enforcing, Permissive, or Disabled.

Examples

# Check SELinux status
getenforce

# Typical output: Enforcing

Sponsors