Operating System - Linux
1828221 Members
2096 Online
109975 Solutions
New Discussion

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 1
Steven Schweda
Honored Contributor

Re: Quick way to scan for who owns what file

      man find

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