restorecon
Restore SELinux security context on files/directories according to persistent rules. See also:
semanage fcontext. More information: https://manned.org/restorecon.
- View the current security context of a file or directory:
ls
- Restore the security context of a file or directory:
restorecon
- Restore the security context of a directory recursively, and show all changed labels:
restorecon -R -v
- Restore the security context of a directory recursively, using all available threads, and show progress:
restorecon -R -T -p
- Preview the label changes that would happen without applying them:
restorecon -R -n -v
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
