The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
getting previous filename shary Shell Programming and Scripting 3 03-20-2008 02:50 AM
code that reads commands from the standard i/p and executes the commands Phrozen Smoke High Level Programming 4 01-21-2007 11:06 PM
how do I get my arrow keys to work for looking thru my PREVIOUS UNIX COMMANDS spotnis UNIX for Dummies Questions & Answers 11 09-13-2005 10:22 PM
Value of previous row using awk videsh77 Shell Programming and Scripting 2 02-18-2005 10:23 AM
Can I use history command to run previous commands? firebirdonfire UNIX for Dummies Questions & Answers 2 03-30-2001 05:05 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-24-2008
Registered User
 

Join Date: Apr 2008
Posts: 56
previous commands using UPARROW key

What settings should be done in order make UPARROW key to show previous commands on the shell prompt(Solaris)?
Reply With Quote
Forum Sponsor
  #2  
Old 07-24-2008
rcmrulzz's Avatar
Registered User
 

Join Date: Apr 2008
Posts: 45
previous commands using UPARROW key

@shafi2all
If you are in bash shell...up arrow should work and show you the previous commands you typed and used....Also you can use the history command to go thru the previously used commands...
Reply With Quote
  #3  
Old 07-24-2008
Registered User
 

Join Date: Apr 2008
Posts: 56
Dear r*, I am not using bash but csh.. I know history command. want UPARROW to work.
Reply With Quote
  #4  
Old 07-24-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 886
At the shell prompt, just type bash:
hostA#bash
It will switch from csh to bash. You can type #exit when you want to drop back to csh
Reply With Quote
  #5  
Old 07-24-2008
Registered User
 

Join Date: Dec 2007
Location: Paris
Posts: 465
csh simply doesn't support up and down arrows for history browsing.
tcsh does if you want to stick with csh syntax.
Otherwise, use bash or better: ksh93.
Reply With Quote
  #6  
Old 07-24-2008
rcmrulzz's Avatar
Registered User
 

Join Date: Apr 2008
Posts: 45
previous commands using UPARROW key

Exactly...
Reply With Quote
  #7  
Old 07-24-2008
Registered User
 

Join Date: Oct 2007
Posts: 288
run /usr/bin/bash and you will have up arrow history

only problem is if you don't have it, you need to pkgadd bash (forgot the package name).
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:46 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0