why does ls -Z returns files names with question marks next to them? And what does this command do?


The manpage for ls says:

-Z, --context
       print any SELinux security context of each file

since you are not running SELinux the ? appears in front of the file as it cannot read that part of it since it does not exist.

More information about SELinux can be found here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.