This style of command line editing is enabled with
set -o emacseither in your .profile file, or manually during your logon session.
l moves the cursor one position to the right.
h moves the cursor one position to the left.
k recalls the previous command.
j recalls the next command.
O moves the cursor to the beginning of the line.
$ moves the cursor to the end of the line.
fc finds next character c on the line.
i puts you in input mode.
a brings the cursor forward one, then puts you in input mode.
A brings the cursor to the end of the line,
and puts you in input mode.
ESC takes you out of input mode (or beeps if in vi mode).
This style of command line editing is enabled with
set -o vieither in your .profile file, or manually during your logon session.
The previous command can be recalled and automatically executed by typing
ron a command line.
r [string]will recall and execute the last command used, that began with string.