Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 9339  / 2 Years ago, wed, march 9, 2022, 3:06:04

I wanted to use the reverse-i-search as usual by pressing Ctrl+R to search my last ssh command. When I tried, I was only able to write "ss" but not continue with "h". Additionally when I hit Ctrl+H again, nothing happens. Does anybody have an explanation?



I am using Ubuntu 12.04 and in the pasttime this worked fine (on my other computer with the same os)


More From » 12.04

 Answers
1

Try like this:



[...] first press Ctrl+R then start typing the command or any part of the command that you are looking for. You'll see an auto-complete of a past command at your prompt. If you keep typing, more specific options will appear. You can also press Ctrl+R again as many times as you want to, this goes back in your history to the previous matching command each time


Once you see a command you like, you can either run it by pressing return, or start editing it by pressing arrows or other movement keys.



Source: Navigating Bash History with Ctrl+R.


[#28706] Thursday, March 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lintical

Total Points: 344
Total Questions: 122
Total Answers: 106

Location: Sint Maarten
Member since Mon, Oct 12, 2020
4 Years ago
lintical questions
Thu, Jan 12, 23, 03:07, 1 Year ago
Mon, Jun 28, 21, 07:01, 3 Years ago
Sat, Aug 7, 21, 04:29, 3 Years ago
Mon, Dec 5, 22, 00:03, 1 Year ago
;