There are many ways to search through your command history. Here are 3:
- use the
up and down arrows
on your keyboard when at the command prompt. - use the
history
command. - Simply press :
Control + R
when at the command prompt.
E.g : Control + R
, then write php