I think an example will be good to understand my question.
... scp file1 user10@192.168.10.1:/home/user1/linuxfiles/samplecode/important ... ... scp file1 user10@192.168.10.1:/home/user1/linuxfiles/samplecode/important/tested ... ...
Assume that is the order of commands in history. If I am doing Ctrl+R and type scp
it will show the last executed scp
command ( ie the line ending with ‘tested’) .
But I want to locate the scp command ending with ‘important’. So is there any way in this reverse-i-search
to view all commands starting with scp, to choose the appropriate one?
Advertisement
Answer
Keep pressing Ctrl–R and it will traverse your history.