HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

getenforce — Get the current mode of SELinux (i.e. enforcing, permissive, or disabled). See also: `setenforce`, `

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecurrentmodecommandcliselinuxgetenforceget
linux

Problem

How to use the getenforce command: Get the current mode of SELinux (i.e. enforcing, permissive, or disabled). See also: setenforce, semanage-permissive. More information: <https://manned.org/getenforce>.

Solution

getenforce — Get the current mode of SELinux (i.e. enforcing, permissive, or disabled). See also: setenforce, semanage-permissive. More information: <https://manned.org/getenforce>.

Display the current mode of SELinux:
getenforce

Code Snippets

Display the current mode of SELinux

getenforce

Context

tldr-pages: linux/getenforce

Revisions (0)

No revisions yet.