how can i search for folder in linux code example Example 1: terminal how to find a directory find . -type d | grep DIRNAME Example 2: linux find directores find -type d -iname $name