10

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

slhck
  • 235,242

1 Answers1

17

If the user was john:

 $ find . ! -user john

From man find:

Operators
! expr True if expr is false.
slhck
  • 235,242
ktf
  • 2,387