In some terminals you can do something like this...
Type some command
nmap -sn 192.168.1.1/24
Then go on to do other things in the terminal for a while. Then later you can type
and then just press the ↑ key and it will index through all of the commands that started with what you typed, in this case
nmap for example.
My example was pretty short but sometimes you type a very long command that you want to run again, and I know you can press ↑ until you find it again, but that goes through every command and could take a while if you typed it long ago.
Is there anyway to get this to work in Ubuntu's Terminal?