14.2 Korn Shell Features
14.2.3 Re-executing commands in the Korn shell
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.
Interactive Media Activity (Flash, 92 kB)
  Re-Executing Commands in the Korn Shell

In this media activity, you are logged in as user2 and your current working directory is: /home/user2. Type the commands that would accomplish the requested objectives. 
Note: Be sure to press enter after each one. Click on step 1 to begin.