Type <kbd>Ctrl</kbd> <kbd>R</kbd> at the command line and start typing the previous command. Once a result appears keep hitting <kbd>Ctrl</kbd> <kbd>R</kbd> to see other matches. When the command you want appears, simply press <kbd>Enter</kbd>