Type the beginning of the command (e.g. "cd") and press the up arrow to see the most recent command containing the text you typed (e.g "cd ~/Library").

Source: http://lifehacker.com/supercharge-your-command-lines-history-search-with-fou-478683529