Re: find files except certain directories

>JRF: find / -xdev -type f -name "*vg*" ! -path "*lvmconf*"

The problem with "! -path" is that it actually stats each file under that path, then excludes it. The optimal option is -prune except there are no good examples on how to use it.find / -xdev -type f \( -name "*lvmconf*" -prune -o -name "*vg*" \)