Online Linux Command

The most professional Linux command series, including Linux command manual, Linux command details, Linux command learning, Linux command line and shell script programming

getenforce

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

补充说明

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

语法

getenforce

例子

查看当前SELinux的应用模式。

[root@localhost ~]# getenforce
Enforcing
Search History
pwd - grep - echo - expand - file - umask - grpck - wc - pigz - nmap - mkfs - kill - join - init - ifup - htop - host - grub - free - fold - expr - which - axel - arch - zip - who - tty - ack - sleep - tar - sum - seq - sed - scp - smbclient - vdfuse - rsh - php - zipsplit - lpc - git - dnf - col - cal - atq - xset - xlsclients - xhost - watch - vgdisplay - vgchange - tput - named-checkzone - xz - tr - ss
Acknowledgement
Comment