history - display the command history
history [N]
Gotchas
- !! is the previous command, !$ its last argument.
sudo !!is the one you will use daily.
Try history in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.