add new chinese translations
This commit is contained in:
25
pages.zh/linux/restorecon.md
Normal file
25
pages.zh/linux/restorecon.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# restorecon
|
||||
|
||||
> 根据持久规则恢复文件/目录的 SELinux 安全上下文。
|
||||
> 另见:`semanage-fcontext`。
|
||||
> 更多信息:<https://manned.org/restorecon>。
|
||||
|
||||
- 查看文件或目录的当前安全上下文:
|
||||
|
||||
`ls -dlZ {{path/to/file_or_directory}}`
|
||||
|
||||
- 恢复文件或目录的安全上下文:
|
||||
|
||||
`restorecon {{path/to/file_or_directory}}`
|
||||
|
||||
- 递归地恢复目录的安全上下文,并显示所有更改的标签:
|
||||
|
||||
`restorecon -R -v {{path/to/directory}}`
|
||||
|
||||
- 递归地恢复目录的安全上下文,使用所有可用线程,并显示进度:
|
||||
|
||||
`restorecon -R -T {{0}} -p {{path/to/directory}}`
|
||||
|
||||
- 预览如果不应用将发生的标签更改:
|
||||
|
||||
`restorecon -R -n -v {{path/to/directory}}`
|
Reference in New Issue
Block a user