How to Find All The Files Owned By a Particular User or Group in Linux

Some times you need to use the find command to look for files that are owner by specific user of group in a directory. The find command has options that allow you to search files like this.

How to find files owned by a group

Syntax:
find directory-or-location -group {group-name} -name {file-name}
directory-or-location : Locate the file in this directory path. -group {group-name}   : Find the file belongs to group-name. -name {file-name}     : The file name or a search pattern. For example, we will look for files of directories under the group galaxy
find /  -group galaxy
For example, we will look for files of directories under the group galaxy and where they have extension .csv
find /  -group galaxy -iname "*.csv"

How to find files owner by a user in Linux

-is similar to finding groups but we only use the option called user
find directory-location -user {username} -iname {file-name}
For example, we will look for files of directories under the user AO
find /  -user AO