vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| How can I run a find command that will search all the local file systems without traversing to mounted file systems? I am trying to find all files that are orphans on the machine e.g., -nouser and -nogroup options. I need to search the entire machine. I tried the -local option and it still traverses to mounted file systems. I tried -mount -local and it only searches the local file system without descending any subdirectories. I will check all systems in my system independently so any nfs mount points will be checked when I search that system. Any help would be gratefully appreciated. Thanks, Mike |
| |||
| Mike wrote: > How can I run a find command that will search all the local file > systems without traversing to mounted file systems? I am trying to > find all files that are orphans on the machine e.g., -nouser and > -nogroup options. I need to search the entire machine. > > I tried the -local option and it still traverses to mounted file > systems. find / ! -local -prune -o -print At least as of Solaris 10 this is an example in the manpage. - Jeremy |
| |||
| Still no joy. I tried: find / ! -local -nouser -nogroup -prune -o -print And it still searched through NFS mapped drives. Any other recommendations? Jeremy Harris <jeremy.harris@sun.com> wrote in message news:<cdmdvh$m95$1@new-usenet.uk.sun.com>... > Mike wrote: > > How can I run a find command that will search all the local file > > systems without traversing to mounted file systems? I am trying to > > find all files that are orphans on the machine e.g., -nouser and > > -nogroup options. I need to search the entire machine. > > > > I tried the -local option and it still traverses to mounted file > > systems. > > find / ! -local -prune -o -print > > At least as of Solaris 10 this is an example in the manpage. > > - Jeremy |
| ||||
| In article <e60d72ed.0407221733.2cf33ca2@posting.google.com >, msargent100@hotmail.com (Mike) writes: > Still no joy. > > I tried: > > find / ! -local -nouser -nogroup -prune -o -print > > And it still searched through NFS mapped drives. > You put the "-prune" in the wrong place (and I think the "-o" if you want to print out files with no user or no group), you want: find / ! -local -prune -nouser -o -nogroup -print Steve |