Finding a directory in a Linux Terminal

How can I find a particular directory in a terminal window in Linux? I think it involves using grep, but I'm not sure how.


Solution 1:

Would you be looking for something like this?

find . -type d | grep DIRNAME

Solution 2:

If you want to find a particular directory that might be anywhere on your computer, the following will work, but it might take a while.

find / -name DIRNAME -type d

Solution 3:

If you have it installed, locate is designed for this. Google "man locate"