search directory ubuntu code example
Example 1: find folder in centos 8
find / -type d -name "apt"
sudo find / -type d -name "apt"
Example 2: find folder in linux
find / -name "dir-name-here"
Example 3: how to search in directory files in ubuntu
# this will search all subdirectories for your text (no case sensitivity)
# it also prints the line number of the text in file
grep -inR "your text" .