LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
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.

Notices


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

Rep: Reputation: 47
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.
 
Old 11-12-2003, 05:41 AM   #2
chozzie
LQ Newbie
 
Registered: Dec 2002
Location: Australia
Distribution: Redhat 9/ Solaris
Posts: 24

Rep: Reputation: 15
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)?
 
Old 11-26-2003, 09:49 AM   #3
yowi
Member
 
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 209

Rep: Reputation: 55
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
wgrace
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
kcarun
Member
 
Registered: Dec 2006
Location: Cochin,INDIA
Distribution: Debian , OpenSolaris,Ubuntu
Posts: 82

Rep: Reputation: 15
Hi ,

Pls refer this thread, this may help you

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


reg
ARUN
 
  


Reply



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

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:17 AM.

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