The following commands with "-Z" reveals along with the context information specifically for each commands.
- ps -Z
- ls -Z
- cp -Z
- id -Z
- mv -Z
This shows the information about the user ID and the context information of the user(SELinux label of user). i.e, id -Z reveals current security context of users
uid=500(user1) gid=500(user1) groups=500(user1) context=user_u:system_r:unconfined_tor
# id -Z
# ps -ZShows the ps run by the user and the labeling information of each process. i.e, ps -Z reveals various domains in Tupals[SUBJECTS].
# ls -ZReveals the security context of files/directories[OBJECTS]
# cpCopying a file will result in inheriting the targeted folder type context. Make sure that the context is verified once the file has been copied.
# mvMoving a file will preserve the security context.