Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
As I'm testing the command, I need to edit various flags in order to get my graph (in this instance) to look right. My problem is that it takes a while to scroll through the commands letter by letter using the arrow keys. I've discovered that ctrl+a and crtl+e take me to the beginning and end of the line respectively, but I was wondering if there were any commands that can shift me backwards and forwards by one word, much like w, e and b do in vi?
I just copy and paste your text and I tried simply
CONTROL+KEY LEFT or RIGHT then it does jump from word to word.
Is that what you've been looking for?
odcheck: If I try ctrl+left or crtl+right, it types D and C (and ctrl+up and ctrl+down gives A and B).
unSpawn: I don't fully understand what you said. I've had a look at the bash manpage, and it seems I need to add something to ~/.inputrc. However, the default shell on these machines is csh, not bash (I'm at university and I don't have root access); sorry, should have mentioned that before. Currently running RHEL4.
Which editor is your bash using? It defaults to emacs (too my knowledge).
If it is emacs: Check the emacs docs for key navigation (sorry, cannot tell you which keys. I'm a vi edict ). It should also be mentioned in the bash manpage.
If you like vi, you can also change your default editor (try set -o vi from the command line and start using vi codes.
Thanks druuna. I checked out the csh manpage (since I'm using csh and not bash) and csh defaults to emacs style navigation (but "bindkey can change the key bindings to vi-style bindings en masse" apparently). Running the bindkey command displays all the possible keystroke combinations, some of which I knew (crtl+a, crtl+e), but a whole host of which I didn't. However, I'm still a little confused because I don't understand the syntax of the shortcuts. For example, the commands I'm looking for are these:
Code:
"^[b" -> backward-word
"^[f" -> forward-word
however, I have no idea what ^[f is in terms of keystrokes. I tried ctrl+[+f, and that didn't work. Can anyone clarify for me?
edit: having looked around on google a bit, it seems that ^[ is escape. problem solved :)
As you found ^[ is escape, but it can also be typed ctrl+[. There is a third option if the terminal is setup properly: you can type alt+f instead of esc+f.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.