Answer the question
In order to leave comments, you need to log in
How to call a command from bash history starting on a specific line?
Hello.
As you know, when working in the terminal, arrows can call past commands.
But sometimes you have to scroll back 20 positions.
Is there a way to do this faster than grep history?history | grep cd
Answer the question
In order to leave comments, you need to log in
CTRL-r you press and start typing part of the command, pressing it again iterates through the found commands.
On the console after pressing CTRL-r it will be something like this
(reverse-i-search)`gre': grep 'item' gus.xml | wc -l
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question