Repeat last entered command ?

Hi,
how to do that ? I mean only print it but not execute. I'm using putty to interact with ksh.
(in windows cmd up arrow does the job)

thanks
vilius

hold esc then press k

but it also depends on your .profile settings. Add this line to your .profile if ESC-k does not work.

set -o vi

add set -o vi to your .profile and execute it.if it is alredy added then just
press esc k to see the most recent commands.you can also press esc j to go back in commands.

Thanks
Namish

after setting 'set -o vi' you can also make use of 'esc \' to complete partial file/dir names

set -o vi - error message "-o: bad option" ?

am i doing something wrong?