首页 > 应用开发 > IT综合 > seliunx的一些简单命令
还原文件上下文
restorecon /root/*
其他的一些命令
ls -Z /etc/shadow /etc/aliases
ls -Zd /etc/ etc/hosts
ps -ZC syslogd,bash
getenforce
setenforce 0|1
system-config-securitylevel
system-config-selinux
chcon -t etc_t install.log
chcon --reference /etc/shadow anaconda-ks.cfg
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/312079/viewspace-1003802/ ,如需转载,请注明出处,否则将追究法律责任。