This question already has an answer here:

In the Terminal is there a way to search for a command you previously entered? Say you typed something in just a moment ago, you can press the up arrow. But if you typed it in hours ago, or a day ago, is there a way to search for keywords that existed in this command, then to retrieve the command?

merged by slhck Sep 4 '14 at 6:07

This question was merged with How can I search the bash history and rerun a command? because it is an exact duplicate of that question.

Browse other questions tagged or ask your own question.