LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Solaris 9 - Command line history (https://www.linuxquestions.org/questions/solaris-opensolaris-20/solaris-9-command-line-history-114503/)

itsjustme 11-10-2003 02:24 PM

Solaris 9 - Command line history
 
How do I get the command line history to work in solaris 9?

I would like to use the up and down arrow keys to scroll through the history the way that linux sets it up.

Currently I just get something like ^[[A when I hit the up arrow.

The root user defaults to ksh and a regular user defaults to sh.

Thanks.

chozzie 11-12-2003 05:41 AM

hmm.
shells shouldn't be OS specific...
But try bash
$bash
and then see whether history works then.
Have you got a vanilla shell configuration (for ksh, sh)?

yowi 11-26-2003 09:49 AM

If you are using ksh then set EDITOR=vi and you'll have vi cursor control to scroll back through your history and \ will give you directory completion (similar to tab in bash)

wgrace 12-24-2003 03:29 PM

Key thing to watch for is shell you are using, at least up until Solaris 8 the shell defaults to Bourne, with no history capability. Switch your shell away from Bourne and follow suggestions made by the others here.

kcarun 08-03-2007 01:07 PM

Hi ,

Pls refer this thread, this may help you

http://www.linuxquestions.org/questi...d.php?t=573814


reg
ARUN


All times are GMT -5. The time now is 06:23 PM.