2

Is there any way to undo edition of command in terminal? E.g. I have a long string which I edited before running a command, and I want to undo some of those edits before pressing ENTER.

5

If you activate vi or emacs mode (set -o emacs or set -o vi ) you can use many advanced features like 'undo'. The default is emacs mode, so ctrl-_ should already do an undo.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.