Alternative to Alt+B and Alt+F to move between words in Linux?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.