How can I configure my Linux terminal so that the current command isn't lost when I press the up arrow key?
migrated from serverfault.com Aug 18 '11 at 6:10
This question came from our site for professional system and network administrators.
Add this to your
Then save the file. This will take effect when you open your next terminal (load it immediately with
This will unbind the Up arrow key from accessing your history. You can still use ctrl+P to move to the previous history item and ctrl+N to move to the next history item.
To unbind both up and down arrow keys, use this: