LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Alternative to Alt+B and Alt+F to move between words in Linux? (https://www.linuxquestions.org/questions/linux-newbie-8/alternative-to-alt-b-and-alt-f-to-move-between-words-in-linux-4175454428/)

MisterSnrub 03-17-2013 01:02 PM

Alternative to Alt+B and Alt+F to move between words in Linux?
 
I hate having to use the Alt key. It's clunky and awkward and difficult for my hands. Is there an easier way to move to the next/previous word? Is there a way to map Alt+F to Ctrl+right arrow and Alt+B to Ctrl+Left arrow?

I guess I should describe my setup: I connect to a CentOS server through PuTTY in Windows 7.

shivaa 03-17-2013 01:40 PM

What's function of Alt+F and Alt+B in Putty?

In the meantime, you have limited options under putty configuration as catagory > keyboard, where you can do modifications.

MisterSnrub 03-17-2013 07:40 PM

Alt+F goes forward a word on the command line. Alt+B moves back a word on the command line.

This isn't just PuTTY-specific. For example, in Terminal in OSX Option+F goes forward a word and Option+B goes back a word. But again, it's a pain to use the Option key when the control key is far preferable.

shivaa 03-17-2013 10:29 PM

Well, I don't think that there's any alternative to Alt+F and Alt+B in Putty. Meanwhile you can use following for ease,
Quote:

CTRL+A – Cursor moves at the beginning of the command
CTRL+E – Cursor moves at the end of the command
CTRL+H – Erase characters one by one from cursor position

chrism01 03-18-2013 12:56 AM

Not sure if that's a Putty thing, but using a Centos system on my desktop; in an xterm session, ctrl-left. ctrl-right work for me (Centos 6.4) at the cmd line.


All times are GMT -5. The time now is 03:30 PM.