open current directory terminal in finder code example Example: terminal how to find a directory find . -type d | grep DIRNAME