Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Doskey in SOlaris

Status
Not open for further replies.

jd99

MIS
May 17, 2001
101
US
what line must I enter in my .profile file to repeat the same command by hitting the up arrow? Is it the .profile and not .login?
 
ksh -o vi
or
set -o vi

You can then use <esc> then k to go back through your commands.

Steve
 
Or, I can use the bourne shell I believe right? I know squat about VI, I find it incredibly ridiculous to use. I am reading a Solaris book, and Vi is the next chapter. Maybe I will have a different outlook then.
 
In bourne shell use ksh -o vi, you will only be using korn shell for this one adtion..

You don't have to know vi to use these commands, although if you do know vi you can get more out of them. If you want to edit a previous command before reissuing it, then you will need vi. But to simply repeat previous commands <esc> then k to get your last command, keep pressing k to go back through the commands, j if you go too far and need to come forward, and return to run the displayed command.

Steve



 
what is the advantages and disadvantages of unix with windowsNT.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top