ubuntu search history command 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: shell search history
sudo add-apt-repository ppa:ultradvorka/ppa && sudo apt-get update && sudo apt-get install hstr && hstr --show-configuration >> ~/.bashrc && . ~/.bashrc