ksh.1 (2010 09)
k
ksh(1) ksh(1)
[count]+ Equivalent to j
.
[count]
G The command number count is fetched. The default is the first command in the
history list.
/string Search backward through history for a previous command containing string .
string is terminated by a Return or Newline.Ifstring is preceded by a
ˆ, the
matched line must begin with string .Ifstring is null, the previous string is
used.
?string Same as / but search in the forward direction.
n Search for next match of the last pattern to
/ or ? commands.
N Search for next match of the last pattern to
/ or ?, but in reverse direction.
Search history for the string entered by the previous
/ command.
Text Modification Edit Commands
These commands modify the line.
a Enter input mode and enter text after the current character.
A Append text to the end of the line. Equivalent to
$a.
[count]
cmotion
c[count]motion Move cursor to the character position specified by motion , deleting all characters
between the original cursor position and new position, and enter input mode. If
motion is
c, the entire line is deleted and input mode entered.
C Delete the current character through the end of line and enter input mode.
Equivalent to c$.
S Equivalent to cc.
D Delete the current character through end of line. Equivalent to d$.
[count]
dmotion
d[count]motion Move cursor to the character position specified by motion , deleting all characters
between the original cursor position and new position. If motion is
d, the entire
line is deleted.
i Enter input mode and insert text before the current character.
I Insert text before the beginning of the line. Equivalent to the two-character
sequence 0i.
[count]
P Place the previous text modification before the cursor.
[count]
p Place the previous text modification after the cursor.
R Enter input mode and replace characters on the screen with characters you type
in overlay fashion.
[count]
rc Replace the current character with c.
[count]
x Delete current character.
[count]
X Delete preceding character.
[count]
. Repeat the previous text modification command.
[count]
˜ Invert the case of the current character and advance the cursor.
[count]
_ Causes the count word of the previous command to be appended at the current
cursor location and places the editor in input mode at the end of the appended
text. The last word is used if count is omitted.
* Appends an * to the current word and attempts file name generation. If no
match is found, the bell rings. If a match is found, the word is replaced by the
matching string and the command places the editor in input mode.
ESC
\ Attempt file name completion on the current word. Replaces the current word
with the longest common prefix of all filenames matching the current word with
an asterisk appended. If the match is unique, a / is appended if the file is a
22 Hewlett-Packard Company − 22 − HP-UX 11i Version 3: September 2010