I was reading The complete reference: Linux and stumbled upon a text that I can't understand.
With the command line editor, not only can you edit the current command, you can also move to a previous event in the history list to edit and execute it. The CTRL-P command then moves you up to the prior event in the list. The CTRL-N command moves you down the list. The ALT-< command moves you to the top of the list, and the ALT-> command moves you to the bottom. You can even use a pattern to search for a given event. The slash followed by a pattern searches backward in the list, and the question mark followed by a pattern searches forward in the list. The n command repeats the search.
It says "slash followed by a pattern searches backward in the list", but I don't know where to type it. For example if I wanted to search for something starting with
cp so where do I write
/cp? And how is this different from using CTRL+R?