Solved

Putty keyboard / terminal configuration for Solaris

Posted on 2007-03-29
8
8,756 Views
Last Modified: 2013-12-27
I would like to know how i could make putty works well with solaris.

I made Backspace key work.
But Up & Down keys don't work.
0
Comment
Question by:nrigaud
  • 4
  • 2
  • 2
8 Comments
 
LVL 4

Accepted Solution

by:
vamsi_uk earned 125 total points
ID: 18814360
When you say up and down arrow keys i take it that you are talking about getting previous executed commands.. is it what you are asking about? If thats what you are asking for all i could think now is the shell you are using that doesnt have command history feature. You can use bash shell if you want to do that. The default shell that comes with solaris doesnt let you get the previous commands just by using up and down arrow keys.
0
 

Author Comment

by:nrigaud
ID: 18814418
The shell is ksh.
and the history command works.

when i press these keys, i got:
Up : ^[[A
Down : ^[[B

Is there a way to bind the arrow keys to the history ?
0
 
LVL 4

Expert Comment

by:vamsi_uk
ID: 18814474
you can press "ESC -" to see and execute the previous commands
0
 
LVL 4

Expert Comment

by:vamsi_uk
ID: 18814483
You can even do the following:

Esc + j   <--- moves down the command history
Esc + k <-- moves up the command history
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 48

Expert Comment

by:Tintin
ID: 18814515
What version of Solaris?

If you are on Solaris =>9, then bash comes as standard.
0
 

Author Comment

by:nrigaud
ID: 18814537
ESC + j or k or - don't work.

it is SunOS 5.8 in fact :/
i think i'll use bash.
0
 
LVL 4

Expert Comment

by:vamsi_uk
ID: 18814549
Refer to this link to see about command history of k shell in solaris 8. The above mentioned commands work on solaris 10. So maybe its not the same in solaris 8.


http://www.phptr.com/articles/article.asp?p=26523&seqNum=5&rl=1
0
 
LVL 48

Expert Comment

by:Tintin
ID: 18819750
ksh (and bash for that matter) have two types of command line edit modes, emacs and vi.

emacs is the default.

If you prefer vi (like most people), you need to do

set -o vi

Then you can use the Esc - and Esc + etc.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now