hildogjr
hildogjr

Reputation: 876

Find files which have (or have not) a specific owner

How to find files in a specific directory (and sub folders - recursive) that have a specific owner name or that have not a specified owner name in the search?

Upvotes: 2

Views: 1023

Answers (1)

catmandogg
catmandogg

Reputation: 126

You can use the find command.

find (directory) -user (user)
find (directory) -not -user (user)

https://www.cyberciti.biz/faq/how-do-i-find-all-the-files-owned-by-a-particular-user-or-group/

Upvotes: 5

Related Questions