ubuntu find file in directory code example
Example 1: ubuntu find file
$ find /path/to/file/ -iname filename
Example 2: find in files ubuntu
grep -r 'pattern_to_match' directory_to_search
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" .
Example 4: search file in ubuntu
$ find /path/to/file/