Home » Questions » Computers [ Ask a new question ]

Ctrl-e and Ctrl-a not working on Ubuntu Hardy?

Ctrl-e and Ctrl-a not working on Ubuntu Hardy?

I use a Mac, so I don't have Home and End keys on my keyboard. I also SSH to Linux servers quite a bit. I've found that when I SSH to an Ubuntu Linux server running Jaunty I can use the readline key-bindings Ctrl-a and Ctrl-e to move the cursor to the beginning or the end of the line, but there are a couple of Hardy servers I often SSH to, and those key-bindings don't work when connecting to them.

Asked by: Guest | Views: 305
Total answers/comments: 1
Guest [Entry]

"Just a thought, but try entering this and retrying the commands:

set -o emacs

If that works, put the setting in your ~/.bashrc file to load it automatically.

If you prefer vi(m), you can do this:

set -o vi

Note, however, that the vi-bindings aren't nearly as complete as the emacs ones."