You can see your command history on Linux just using command history:
history
and this should show you all commands which you have wrote with a line number on the beginning of the line. You can redo those commands just with ! and writing number of that line which command you want to redo:
!line_of_history […]