Find file owned by user  #

find directory-location -user {username} -name {file-name}

Find file owned by a group  #

find directory-location -group {group-name} -name {file-name}

To find all *.pl (perl files) file belongs to a user called “vivek” in /var/www directory, enter:

find /var/www -user vivek -name "*.pl"

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

Loading

Angetrieben von BetterDocs