System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Quick way to scan for who owns what file

Scott McDade
Frequent Advisor

Quick way to scan for who owns what file

Hello:

 

I am wondering if there is a quick way to scan a directory structure and see which files in which sub directories are owned by a certain user.

 

Example;

 

I would like to know which files are owned by root under /opt/VSPECS/ and /opt/VTRAIN

 

Thanks in advance for your time.

Keep it Simple!~
1 REPLY
Steven Schweda
Honored Contributor

Re: Quick way to scan for who owns what file

      man find

   Look for "-uid" and "-user".