Easy BASH command histroy

By | November 25, 2008

While in a Terminal session, press Ctrl+R and start typing a part of a previous command. The prompt will autocomplete the command from the bash history and you won’t need to type it all over again.

6 thoughts on “Easy BASH command histroy

  1. Andrew Chernin

    Great advice, but how do I get out of this mode without submitting the command?

  2. T4L Post author

    Wow. I didn’t know you can actually tag things in bash_history. Thanks for the tip.

  3. nikolko

    but who knows how to “jump” between lines, which contains string after ctrl+r? If I type just ctrl+r and “word”, only the first occurrence will be shown. But in case I need second? pressing up arrow will bring me out of this “word” I type and just show the preceding command of that containing my “word”.


Leave a Reply

Your email address will not be published. Required fields are marked *