Visit Jeremy's Blog.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 11-10-2003, 02:24 PM   #1
Senior Member
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
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.

Old 11-12-2003, 05:41 AM   #2
LQ Newbie
Registered: Dec 2002
Location: Australia
Distribution: Redhat 9/ Solaris
Posts: 24

Rep: Reputation: 15
shells shouldn't be OS specific...
But try bash
and then see whether history works then.
Have you got a vanilla shell configuration (for ksh, sh)?
Old 11-26-2003, 09:49 AM   #3
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 209

Rep: Reputation: 54
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)
Old 12-24-2003, 03:29 PM   #4
LQ Newbie
Registered: Dec 2003
Location: NJ
Distribution: Mandrake 9.1
Posts: 5

Rep: Reputation: 0
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.
Old 08-03-2007, 01:07 PM   #5
Registered: Dec 2006
Location: Cochin,INDIA
Distribution: Debian , OpenSolaris,Ubuntu
Posts: 82

Rep: Reputation: 15
Hi ,

Pls refer this thread, this may help you



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
command line history crickett Linux - General 13 12-17-2009 08:22 AM
clean command line history basilogics Linux - Newbie 9 11-04-2005 04:25 AM
problem deleting file using solaris command line. szehanz Solaris / OpenSolaris 2 03-22-2005 07:52 PM
command line history begby Linux - Software 7 03-12-2005 01:58 AM
history with command line compu73rg33k Linux - Software 3 02-16-2004 03:36 AM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration