find a directory in linux code example
Example 1: find folder linux
find / -type d -name 'folder_name'
Example 2: terminal how to find a directory
find . -type d | grep DIRNAME
Example 3: linux find directores
find -type d -iname $name
Example 4: find folder in centos 8
find / -type d -name "apt"
sudo find / -type d -name "apt"
Example 5: find folder in linux
find / -name "dir-name-here"
Example 6: search a folder in linux
$ locate --basename '\pkg'