Note: This is an RHCSA 7 exam objective.

To get a SELinux file context, type:

# ls -Z

To get a SELinux process context, type:

# ps -eZ