getenforce
获取当前的 SELinux 模式。
$ getenforce
无需任何选项,直接运行命令即可查看 SELinux 是 Enforcing、Permissive 还是 Disabled。
示例
# 检查 SELinux 状态 getenforce # 典型输出:Enforcing
Sponsors
获取当前的 SELinux 模式。
无需任何选项,直接运行命令即可查看 SELinux 是 Enforcing、Permissive 还是 Disabled。
示例
# 检查 SELinux 状态 getenforce # 典型输出:Enforcing
Sponsors