what are the following keyboard shortcuts in a terminal?

Posted by kloop on Super User See other posts from Super User or by kloop
Published on 2012-11-10T15:40:16Z Indexed on 2012/11/10 17:06 UTC
Read the original article Hit count: 159

Filed under:
|
|

I am trying to figure out a few keyboard shortcuts in a terminal in mac osx (and Linux):

In the command line:

  1. go to the next word
  2. go to the previous word
  3. go to the end of the line
  4. go to the beginning of the line

This will make it easier to change commands.. Right now, I am using the left/right arrow keys, which is time consuming.

I used bind -p as suggested below.

EDIT:

What do the following key bindings mean?

"\e\e[D": backward-word
"\e[1;5D": backward-word
"\e[5D": backward-word
"\eb": backward-word

and:

"\e\e[C": forward-word
"\e[1;5C": forward-word
"\e[5C": forward-word
"\ef": forward-word

© Super User or respective owner

Related posts about linux

Related posts about osx