Viewing Session History in the ksh Shell
Using ksh, you can also view session history. In doing so, you can get a quick reminder of what you've been doing (Code Listing 3.13), reuse commands, and modify commands you've already used.
Code Listing 3.13. Although it looks like we typed ls for both the first and second commands, we really just pressed to get the second ls command. The r 64 command recycles the command numbered 64 in the list.
To view session history in the ksh shell: