How do I recursively search for all files or directories that do not belong to given user?

1 Answer 1


If the user was john:

 $ find . ! -user john

From man find:

! expr True if expr is false.

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.