linux search history code example
Example 1: shell search history
sudo add-apt-repository ppa:ultradvorka/ppa && sudo apt-get update && sudo apt-get install hstr && hstr --show-configuration >> ~/.bashrc && . ~/.bashrc
Example 2: linux history command
Just check the enumeration of your commands history and then delete them:
history -d 7 #Deletes seventh command in your history list