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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-10-2003, 02:24 PM
|
#1
|
Senior Member
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571
Rep:
|
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.
|
|
|
11-12-2003, 05:41 AM
|
#2
|
LQ Newbie
Registered: Dec 2002
Location: Australia
Distribution: Redhat 9/ Solaris
Posts: 24
Rep:
|
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)?
|
|
|
11-26-2003, 09:49 AM
|
#3
|
Member
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 209
Rep:
|
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)
|
|
|
12-24-2003, 03:29 PM
|
#4
|
LQ Newbie
Registered: Dec 2003
Location: NJ
Distribution: Mandrake 9.1
Posts: 5
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|