How to set history key in Solaris | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

How to set history key in Solaris

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-10-2008
timontt timontt is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 25 March 2009, 5:49 PM EDT
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
How to set history key in Solaris

Hi Solaris guys,

I just have my solaris 10 setup on x86 old box...
How can i get history key?
eg.
Linux using up/down arrow key to call history command...
HPUX using Esc-k

How can i do the samething in Solaris?

Thanks in advanced!

Regards,
gary
Sponsored Links
    #2  
Old 03-10-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
 
Join Date: Jul 2006
Last Activity: 1 October 2014, 4:00 AM EDT
Location: Berlin, Germany
Posts: 5,405
Thanks: 55
Thanked 231 Times in 224 Posts
history as you use it is available in bash (shell). solaris uses sh as a standard shell. for your user type "bash" and you can use the up/down keys... if you like to use bash as your default shell, just edit the /etc/passwd for your user and you have bash as a default for your user.
Sponsored Links
    #3  
Old 03-10-2008
dxcreepin dxcreepin is offline
Registered User
 
Join Date: Jul 2005
Last Activity: 9 February 2010, 12:23 PM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
I primarily use the Korn shell and I go through my history using Esc-k. To enable it, I put "export EDITOR=vi" in my .profile so that it is in my environment when I log in. It has the neat side of effect of being able to use vi commands at the shell prompt.
    #4  
Old 03-11-2008
timontt timontt is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 25 March 2009, 5:49 PM EDT
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks... guys....
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
history timestamp in Solaris linuxgeek UNIX for Advanced & Expert Users 2 02-22-2011 11:03 AM
Check History In Solaris Olli.Lang UNIX for Dummies Questions & Answers 1 09-09-2008 11:08 PM
solaris 10 vi history itik Solaris 4 02-08-2008 09:46 PM
Command history in Solaris jxh461 Solaris 3 01-16-2007 12:32 PM
Passwd History in Solaris 8 amoorti Solaris 4 02-07-2005 07:26 AM



All times are GMT -4. The time now is 06:17 AM.