Searching the bash history

Bash is a great shell, and has numerous capabiltiies to make peoples life easier. One super nifty feature is the ability to search through the shell’s history by hitting cntrl-r (control then the letter ‘r’):

$ cntrl-r
(reverse-i-search)`meta’: metastat

Once you locate the command you want to run, you simply hit enter to execute it. Good stuff!

One Comment

Aleksey  on June 19th, 2006

Handy, thanks for the tip!

Aleksey

Leave a Comment