How to find a folder on my server with a certain name?

I have a directory somewhere on my server wth the name "exampledocs". I tried to find it's location using:

ls -d */ | grep -E 'exampledocs'

and

find * -regextype posix-extended \-regex 'exampledocs' \-type d

and

grep "exampledocs" * --recursive

Nothing worked. How can I do this from the command line? I'm using Ubuntu Server 11.0.


Solution 1:

This also should work

find folder_full_path -name exampledocs -type d

Solution 2:

find / -xdev 2>/dev/null -name "exampledocs" 

Note: This is from Debian, but it should work.