I have a lot a commands that I want to run again, but there are a lot of them, and going up to them with the up arrow key is too long. Is it possible to get it in a cat/tail command and pipe it to a file ?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
migrated from stackoverflow.com Feb 2 at 18:04
|
You can use the history command:
|
|||
|
Adding this to ~/.inputrc would make the up and down arrows cycle through commands that match the start of the line:
I also use these functions a lot:
If you add |
||||
|
|
~/.bash_historySee also stackoverflow.com/questions/8168676/… – Pumbaa80 Feb 2 at 10:23