Display SELinux policy and mode details.

Section: SELinux and AppArmor Basics

Show SELinux status

bash
bash
sestatus
Explanation

Provides more context than `getenforce`.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing SELinux and AppArmor Basics
Show SELinux mode
Print current SELinux mode.
OpenIn sheetbashsame section
Restore SELinux contexts
Reset file labels according to policy.
OpenIn sheetbashsame section
Allow service on custom SELinux port
Add or modify SELinux port context mapping.
OpenIn sheetbashsame section
Show AppArmor status
Display loaded AppArmor profiles.
OpenIn sheetbashsame section
Inspect recent audit messages
Query audit-related journal entries.
OpenIn sheetbashsame section
Lock user password
Disable password authentication for a user.
OpenIn sheetbash1 tag match