I am trying to figure out a few keyboard shortcuts in a terminal in Mac OS X (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.
EDIT: I used bind -p as suggested below. 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
bind -pshould tell you what keyboard commands exist. – choroba Nov 10 '12 at 15:46