So, how do you recall history-commands? One possible way is by using the Up and Down arrows in your keyboard (warning: this might not work is your shell set up is to vi-keys).
Another way is by using the exclamation mark. Something like this:
will recall the latest (most recent) command that starts with the character l. You can do longer things, like !fi or similar.
Another way of recalling history is by using the exclamation mark and a number. A little explanation first: if you look at the ouput of the history command then you will see each command comes with a number. Then doing something like this:
will recall the command with history number 500.