How to find -exec cd in linux / unix

Viewed 12880

I'm searching for a config folder, and trying to change to that directory:

find . -name "config" -exec cd {} \;

There is one match, ./my-applications/config, but after I try this it says:

find: `cd': No such file or directory

What am I doing wrong?

3 Answers
Related