find question

Pete Holsberg pjh42 at pobox.com
Sat Jul 14 16:19:48 UTC 2007


H.S. keyed the following on 7/14/2007 11:56 AM:
> Pete Holsberg wrote:
>   
>> Hi,
>>
>> Whenever I do a find starting at /, it searches /proc! Is there a way to 
>> make find skip /proc?
>>
>> Thanks.
>>
>>     
>
> Perhaps "-prune" will help? See:
> $> man find
>
> and search for prune.

Interesting! I used

find / -name proc -prune -o -name .profile 2>/dev/null

It did not run down the entire /proc hierarchy but it did report all 
files with "proc" in their names, such as all the stuff under 
/usr/src/linux-headers* !!


-- 
Pete Holsberg
Columbus, NJ

Only a mediocre person is always at his best...
-- W. Somerset Maugham




More information about the ubuntu-users mailing list