>_ linuxcommand.dev
Startseite restorecon
Security

restorecon

Resets SELinux file contexts to default values.

CentOS
Verified: 2026-02-09
Syntax
$restorecon [OPTIONEN] PFAD
Optionen
-R Rekursiv
-v Verbose-Ausgabe
Examples
$sudo restorecon -Rv /var/www/html
$sudo restorecon -v /etc/nginx/nginx.conf
Typical use cases
?
Standard usage
restorecon --help
Note Typical step in SELinux policy issues.
Export