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.
33 Answers
Would you be looking for something like this?
find . -type d | grep DIRNAME4
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 1 If you have it installed, locate is designed for this. Google "man locate"