LinuxCommandLibrary

getenforce

get the current mode of SELinux

TLDR

Display the current mode of SELinux

$ getenforce
copy

Name

get the current mode of SELinux

Synopsis

getenforce

Description

getenforce reports whether SELinux is enforcing, permissive, or disabled.

Author

Dan Walsh,

See Also

selinux(8)setenforce(8)selinuxenabled(8)

Copied to clipboard