LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-19-2006, 12:06 AM   #1
scbops
Member
 
Registered: Feb 2006
Posts: 97

Rep: Reputation: 15
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
 
Old 04-19-2006, 01:10 AM   #2
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
Try
'! -user joe ! -group joe'
 
Old 04-19-2006, 02:09 AM   #3
scbops
Member
 
Registered: Feb 2006
Posts: 97

Original Poster
Rep: Reputation: 15
Look like it is working

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kubuntu, 2 questions in advance LOL Ubuntu 3 11-10-2005 05:38 PM
partitioning in advance blotch Linux - Software 2 10-09-2005 04:12 PM
advance ip subneting sqn General 0 03-25-2004 07:08 AM
RH Advance server ust Linux - General 0 02-16-2004 07:26 PM
PLease help. Thanx in advance. wildcard72 Linux - Newbie 5 02-10-2003 12:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration