find in files terminal linux code example
Example 1: ubuntu search for command used
> grep "the_search" ~/.bash_history
--Don't forget the -i flag if you need case insensitive search.
Example 2: search for files in linux terminal
find /path/to/folder/ -iname *file_name_portion*
#Example
find / -iname *test*
#Output
/downloads/test_2.txt
/downloads/test_1.csv
/home/ubuntu/first_test.txt