Previous Command

We have a Solaris Server and I am acessing it through telnet to run various commands for my data validation like GREP, SED, AWK etc.

My requirement is how do i use the previous command that was executed. I tried the option 'ESC' and then 'k'. It displays the characters like '^[[A' etc. How do I get my previous command in this case. Pls note I am using Microsoft Telnet to access the server.

I use to get it previously when I was working on AIX Server. But, I was using a unix client called 'X-Thin Pro'. Is it not possible with Telnet??

Check which shell you are using. Use 'echo $0' or 'echo $SHELL' commands for that. If your shell is sh, then the ESC+whatever is not supported. Run 'ksh -o vi' to get the functionality that you want. If the shell is ksh, then it isn't running in vi mode. Run 'set -o vi' to get it going.

Cheers

Hi - Thats great. It worked.

Thx.