LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
LinkBack Search this Thread
Old 01-24-2007, 01:36 PM   #1
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 401

Rep: Reputation: 31
Browsing Terminal History


I've seen it done before, but I can't remember how... Isn't there a way in Solaris to have your history browseable via the arrow keys? Work has switched me from from Linux to Solaris and this is a function that I miss the most... I also miss the function of using "tab" to fill in the rest of a word when typing a path out.

Is there any site holding all these little tricks? Thanks again!
 
Old 01-24-2007, 01:41 PM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Never (yet) used Solaris, but is it possible to install bash (Bourne Again SHell) on it, and use that instead whatever shell you are using (sh/ksh/csh/tsch/...)? I believe those things are dependent on the shell you're using, and not all shells provide them (tab-completion and comman history). On Linux bash is, as far as I know, the most common shell except for some special systems.
 
Old 01-24-2007, 02:21 PM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,459

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Bash is in fact available as standard on Solaris distributions since at least 2 years (SUNWbash package).

There have always been ways to travel in the shell history and to autocomplete using the most common shell used on Solaris, /bin/ksh, but it is less newbie friendly than what bash offers.

The last real ksh (from David Korn) finally had this so much wanted feature integrated (ksh93g for the tab, and ksh93h for the arrows).
 
Old 01-24-2007, 03:42 PM   #4
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 401

Original Poster
Rep: Reputation: 31
Thanks for the info guys! Our systems are a little older with version 5.8 and I'm afraid to upgrade the systems, so I guess I'll just deal...
 
Old 01-24-2007, 10:56 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,459

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
You can easily install bash to Solaris 8. Otherwise, you can use the ksh vi mode, and move in the history with vi commands (k for previous command, j for next command). File completion can be done with \ or *.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Browsing the internet from terminal MRMadhav Fedora 7 07-09-2006 07:01 AM
gnome-terminal command history file?? kushalkoolwal Debian 1 03-07-2006 06:39 PM
Gnome terminal command history problem ssrini *BSD 1 07-26-2005 09:55 AM
Terminal Command History? Allen614 Linux - General 3 01-14-2003 11:35 PM
terminal history logging alue Linux - General 4 03-15-2002 01:59 AM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration