find a directory with pattern code example Example 1: linux find directores find -type d -iname $name Example 2: find folder in linux find / -name "dir-name-here"