title: Matlab-like command history retrieval in unix command line
body: <p>In Matlab, there is a very nice feature that I like.  Suppose I typed the command <code>very-long-command</code>  and then a few several commands afterwards.  Then later if I need the long command again, I just type <code>very</code> and press the up arrow key, my long command appears.  It finds the last command that starts with <code>very</code>. I couldn't do the same in unix command line,  when I try to do it, it disregards whatever I typed, and goes back to the last commands in chronological order.  Is there a way to do it?</p>