how to find only folders in linux and window code example Example: terminal how to find a directory find . -type d | grep DIRNAME