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:
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
For example, we will look for files of directories under the group galaxy and where they have extension .csv
How to find files owner by a user in Linux
-is similar to finding groups but we only use the option called user
For example, we will look for files of directories under the user AO