ubuntu search in history 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: find old command terminal
history | grep "foo*"
> grep "the_search" ~/.bash_history
--Don't forget the -i flag if you need case insensitive search.
history | grep "foo*"