if you type the command

fc -l

bash will list the previous 16 commands with a number in front of each one

Then if you want to run the command numbered 11, say, then just enter

!11

If you want a list of the previous 20 commands instead of just 16 then type

fc -l -20