In your terminal, type:
history
will return a list of commands you have entered into the terminal, alternatively, you can use the up arrow key to see your previous command.