> For the complete documentation index, see [llms.txt](https://hezhiqiang.gitbook.io/linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hezhiqiang.gitbook.io/linux/ming-ling/getenforce.md).

# getenforce

显示当前SELinux的应用模式，是强制、执行还是停用

## 补充说明

**grename命令** 可以重命名卷组的名称。

### 语法

```
getenforce
```

### 例子

查看当前SELinux的应用模式。

```
[root@localhost ~]# getenforce
Enforcing
```
