find folder in terminal command code example Example: terminal how to find a directory find . -type d | grep DIRNAME