APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

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:

Take Control of the Mac Command Line with Terminal, Second Edition

Take Control of IOS 11

Take Control of iCloud, Fifth Edition

Digital Sharing Crash Course

Take control of Apple TV, Second Edition






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





The people I distrust most are those who want to improve our lives but have only one course of action in mind. (Frank Herbert)




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