exclude directories from find command

RW rwmaillists at googlemail.com
Sat Dec 22 15:08:40 UTC 2012


On Sat, 22 Dec 2012 06:22:44 -0800 (PST)
Jack Mc Lauren wrote:

> Hi fellas
> How can I exclude specific directories from my find command ? I want
> to look for all files in the whole system except for those in
> e.g /extra directory. I use this command to find all files, but how
> can I exclude /extra directory ?
> 
> find / -type f
> 

Try this

http://lmgtfy.com/?q=find+exclude+a+directory




More information about the freebsd-questions mailing list