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!

This article was posted by Matty on 2006-06-17 21:25:00 -0400 -0400