Article Index

Part III – Search Files Based On Owners and Groups

 

22. Find Single File Based on User

 

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

 

# find / -user root -name lost.txt

 

23. Find all Files Based on User

 

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

 

# find /home -user lost

 

24. Find all Files Based on Group

 

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

 

# find /home -group developer

 

25. Find Particular Files of User

 

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

 

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