Don’t you remember of a command line that you used some hours ago? I found a simple way to do that:
Just a little, but helpful, tip from the Garrett LeSage’s website.
..to search typed history at a bash prompt, hit control-r and start typing a command you used previously. It doesn’t have to start with what is typed, as it returns matches which contain the searched text.
Hit control-r again (while searching), and it will jump back further in history and search with the same text…