history
command shows all the results but we can filter to get particular command using history | grep searchingCommand
. It is really helpful.
But the problem is it shows those commands also which was entered with typo error or which was unsuccessful. Then identifying the correct one is really a pain. I checked this link: Selective command-history in the terminal? but that was not my solution.
So is there a way to delete those commands from the history which was incorrect at the time entered or later?