LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Advance find (https://www.linuxquestions.org/questions/programming-9/advance-find-436619/)

scbops 04-19-2006 12:06 AM

Advance find
 
1)If this is the folder /home/joe it's subdirectories and files are like this

[root@192.168.40.200 loe]# ls -al /home/joe/
total 384000
drwxr-xr-x 7 joe joe 4096 Apr 19 09:14 .
drwxr-xr-x 15 root root 4096 Feb 22 16:20 ..
drwxr-xr-x 3 joe joe 4096 Mar 3 19:42 42EAR
drwxr-xr-x 3 joe joe 4096 Mar 3 19:39 42Shared
-rwxr-xr-x 1 joe joe 314310187 Feb 22 16:14 Backuser1.tgz
-rwxr-xr-x 1 joe joe 916 Apr 12 14:55 .bash_history
-rwxr-xr-x 1 joe joe 24 Feb 22 16:11 .bash_logout
-rwxr-xr-x 1 joe joe 513 Apr 11 10:24 .bash_profile
-rwxr-xr-x 1 joe joe 124 Feb 22 16:11 .bashrc
drwxr-xr-x 2 joe joe 4096 Apr 10 20:31 esm60
drwxr-xr-x 2 joe joe 4096 Mar 17 20:09 esm60.OLD
-rwxr-xr-x 1 joe joe 17040274 Mar 17 20:07 esm60.OLD.tgz
-rwxr-xr-x 1 joe joe 92 Apr 19 09:14 .esmvalues
-rwxr-xr-x 1 joe joe 61409051 Mar 3 19:43 ReDR.tgz
drwxr-xr-x 3 joe joe 4096 Feb 22 16:37 ud3

2)Is it possible to check /home/joe directory and it's sudirectories and files that are not owned by user joe and group joe

3)I normally used this command find /home/joe -nouser -nogroup -ls

4)This will only show the file and directories that are not owned by any user

5)I need to find out file and directories wich are not owned user joe in his home directory

addy86 04-19-2006 01:10 AM

Try
'! -user joe ! -group joe'

scbops 04-19-2006 02:09 AM

Look like it is working

Thanks man
............................
keep it up


All times are GMT -5. The time now is 07:41 PM.