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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use the Up arrow key to scroll through prev commands

Status
Not open for further replies.

ad73

IS-IT--Management
Aug 14, 2001
50
CA
Hi:

I was wondering if anyone knows if thee is a way to setup my SCO Unix (5.0.5) to work from the command line similar to DOS, in the sense that I would like to be able to use the up/down arrows to scroll through the list of previously issued commands. In DOS All I ave to do is use the up arrow, and the previous command apprears on the command line. To re-use this command I just press enter. Was wondering if the same was possible in Unix.

Thanks in advance

ad73
 
If you use a korn shell with history enabled and vi as your editor you can do exactly that.
 
Thanks for the Tip MM. I was trying to do this but I do not know how to set up the shell to realize that vi is my editor of choice. or The command to enable history. (i'm a bit of a newbie - but trying as always). would you happen to know whaqt steps I should take?

Also, is this same thing available for the "sh" shell? This is the one we use by default.

Please advise... Thanks
ad73
 
no it is not available under sh.
it is available under bash and ksh.
do yourself a favor and DO NOT change the shell type for the root account.
the change is accomplished under the account manager in scoadmin, or just change the /bin/sh entry in the /etc/passwd file for the user that you wish to change.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top