Bash – Interactive shell tips

bashshellunix

What are some of your favorite shell tips? Stuff that makes your every day command line use that much easier?

Mine, for bash:

Add this to the .inputrc file in your home dir:

"\e[A": history-search-backward
"\e[B": history-search-forward

Now, when you start typing at the prompt, the arrow keys will search through your history for any other commands that start with what you've already typed.

Best Answer

Not a tip, instead more of a meta-tip. There are lots of cool cli reciipies at http://www.commandlinefu.com/