The r
(repeat)
command is one of many pre-defined aliases in the Korn shell. This
enables the user to re-execute commands from the history list.
| Command Format: |
| r
[argument(s)] |
The argument passed to the r
command is the history line
number of a particular command, or a letter indicating the most recent
command in the history list
that started with that letter. In Figure ,
the first example shows
the r
command by itself, which will repeat the last command entered (pwd).
This is similar to the F3 key in DOS. The second example uses the history
command to see the commands from 27 on and then uses the
r
command to
repeat the 27th command. Example 3 repeats the last command that
started with the letter p.
|