which linux command use to search priviously used command code example
Example: ubuntu search for command used
> grep "the_search" ~/.bash_history
--Don't forget the -i flag if you need case insensitive search.
> grep "the_search" ~/.bash_history
--Don't forget the -i flag if you need case insensitive search.