install locate on ubuntu code example
Example 1: locate command not found
##for debian :
sudo apt install mlocate
Example 2: ubuntu search for command used
> grep "the_search" ~/.bash_history
--Don't forget the -i flag if you need case insensitive search.