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
I am trying to figure out a few keyboard shortcuts in a terminal in mac osx (and Linux):
In the command line:
- go to the next word
- go to the previous word
- go to the end of the line
- 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