Operating System - Linux
1754067 Members
3261 Online
108811 Solutions
New Discussion

Re: 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".