ubuntu search for file code example
Example 1: linux search for file everywhere
find / -name "filename"
Example 2: ubuntu find file
$ find /path/to/file/ -iname filename
Example 3: terminal how to find a file name
find / -name NAME.EXTENSION
Example 4: ubuntu find file with text
grep -r someWordToSearchHere *
Example 5: ubuntu search for command used
> grep "the_search" ~/.bash_history
--Don't forget the -i flag if you need case insensitive search.
Example 6: find in files ubuntu
grep -r 'pattern_to_match' directory_to_search