Forum Moderators: bakedjake
An example:
Let's assume there are these commands in the history:
ls -al
gcc -o test test.c
ps ax
ll
ps ax ¦ grep php
If you now enter "g" and press the "up" cursor key, the shell doesn't show "ps ax ¦ grep php" as its first entry, but "gcc -o test test.c", because this is the first line in the shell history starting with "g".
Do I need a special shell (version) for this functionality or am I just missing an option?
In you example, "Ctrl-R test" would locate "gcc -o test test.c". Press Ctrl-R repeated after some text to find still older commands which contain the text, so "Ctrl-R test Ctrl-R" would locate the second older command containing "test".
René