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.
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/-groupgalaxy
For example, we will look for files of directories under the group galaxy and where they have extension .csv
find/-groupgalaxy-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