Search Files Based On Owners and Groups in Linux

Rate this post

Search Files Based On Owners and Groups in Linux

In Unix-like and some other operating systems, find is a command-line utility that searches one or more directory trees of a file system, locates files based on some user-specified criteria and applies a user-specified action on each matched file.

To find all or single file called testdata.txt under / root directory of owner root.

# find / -user root -name testdata.txt

Find all Files Based on User

To find all files that belongs to user Satya under /home directory.

# find /home -user Satya

Find all Files Based on Group

To find all files that belongs to group TechDeveloper under /home directory.

# find /home -group TechDeveloper

Find Particular Files of User

To find all .txt files of user Satya under /home directory.

# find /home -user Satya -iname "*.txt"

 

 

Find Files by Modification Time in linux

Find Files Based on their Permissions in Linux

Find Linux Command : Basic

 

For any query or issue, feel free to discuss on http://discuss.eduguru.in

Leave a Reply

%d bloggers like this: