Please forgive my ignorance.... I have a history of commands in Bash on OS X and Linux. At times, I want to go back to an item based on the command. For example, suppose I previously entered:
make distclean && make dist && cp *.diff *.tar.gz ../
Then, suppose I have tens or hundreds of commands following it in history.
How can I type
make and then use, say, the up arrow (
↑) or control and up arrow (
↑) to go back to that command in history?
The "stub" or "stem" means I only type "ma", and not "make".
I work in Bash on both Linux and OS X, so I'd be interested in both operating systems.