# # (SCO Unix) How can I have a 'command line history & editing' shellund
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.



Some material is very old and may be incorrect today

© December 2003 (various)

SCO Unix, Xenix and ODT General FAQ

This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

How can I have a 'command line history & editing' shell under SCO Unix/OS5?

The simplest way is to use the korn shell (ksh); you can change your login shell from the 'Scoadmin -> Account Manager' interface. Once you're done, insert the 'set -o vi' line in your $HOME.profile file; thus enabling the vi(C) compatibile command line history and editing. Previously typed command can be retrieved by using vi(C)-like commands such as "ESC k" (scroll the list of typed command backwards), "ESC j" (scroll forwards) and so on (see the ksh(C) man pages).

Alternatively you can enable emacs-like command, as Richard Howlett suggested in the following excerpt:

  set -o emacs
  alias __A=$(print '\0020')    # ^P = up    = previous command
  alias __B=$(print '\0016')    # ^N = down  = next command
  alias __C=$(print '\0006')    # ^F = right = forward a character
  alias __D=$(print '\0002')    # ^B = left  = back a character
  alias __H=$(print '\0001')    # ^A = home  = beginning of line
 

Other shells such as bash, zsh and so on have a command line hustory & editing which is very similar to the one used under DOS with 'setkey'; check your Skunkware CD-ROM for additional info.

Roberto Zini


If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> (SCO Unix) How can I have a 'command line history & editing' shellund


Inexpensive and informative Apple related e-books:

iOS 10: A Take Control Crash Course

Take Control of OS X Server

Take Control of Upgrading to El Capitan

Take Control of IOS 11

Take Control of Pages






Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





A learning experience is one of those things that say, "You know that thing you just did? Don't do that." (Douglas Adams)




Linux posts

Troubleshooting posts


This post tagged:

FAQ

SCO_OSR5



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode