Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

User Commands (k - l) ksh(1)
^ Cursor to the first nonspace character in the line.
$ Cursor to the end of the line.
Search Edit Commands
These commands access your command history.
[count]k Fetches the previous command. Each time k is entered, the previous command back in
time is accessed.
[count]- Equivalent to k.
[count]j Fetches the next command. Each time j is entered, the next command forward in time
is accessed.
[count]+ Equivalent to j.
[count]G Fetches the command number count. The default is the least recent history command.
/string Searches backward through history for a previous command containing the specified
string. string is terminated by <Return> or a newline character. If the specified string
is preceded by a ˆ (circumflex), the matched line must begin with string.Ifstring is
null, the previous string is used.
?string Same as / (slash) except that the search is in the forward direction.
n Searches for next match of the last pattern to the / or ? commands.
N Searches for next match of the last pattern to the / or ? commands, but in reverse direc-
tion. Searches the command history for the string entered by the previous / command.
Text Modification Edit Commands
These commands modify the line.
a Enters input mode and enters text after the current character.
A Appends text to the end of the line. Equivalent to $a.
[count]cmotion
c[count]m
otion
Deletes the current character through the character to which motion would move the
cursor, and enters input mode. If motion is c, the entire line is deleted and input mode
is entered.
C Deletes the current character through the end of line, and enters input mode.
Equivalent to c$.
S Equivalent to cc.
D Deletes the current character through the end of line. Equivalent to d$.
[count]dmotion
d[count]motion
Deletes the current character through the character to which motion would move. If
motion is d, the entire line is deleted.
527188-021 Hewlett-Packard Company 525