Create ~/.inputrc and fill it with this: "\e[A": history-search-backward "\e[B": history-search-forward This allows you to search through your history using the up and down arrows … i.e. type "cd" and press the up arrow and you'll search through everything in your history that starts with "cd". It's a little bit like ctrl-r (mentioned in many of the comments below), but anchored to the start of th
![The single most useful thing in bash (Example)](https://cdn-ak-scissors.b.st-hatena.com/image/square/e3ebf34fd1b7a3d9b6b4a85ad584d6e0fe769542/height=288;version=1;width=512/https%3A%2F%2Fcoderwall-assets-0.s3.amazonaws.com%2Fuploads%2Fuser%2Favatar%2F17043%2F0abba8c023667a16e939e2d6ada9eb5a.jpeg)