Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm logged into a remote server using putty ssh. The problem is that keyboard keys are not working as I was expecting. I'm talking about directional keys and tab.

TAB is working as in MS Windows, but in CLI, I need the auto-complete feature.

Can you help me with some advices?

UPDATE: on ps - p $$ it says that I'm using sh.

share|improve this question
    
What is your current shell? Not all shells support auto-complete! You can find out your shell by typing ps -p $$. Also, your title is misleading. –  Khaled Dec 11 '11 at 15:24
    
Use echo $SHELL to find out what shell you're using. –  ott-- Dec 11 '11 at 17:42
1  
@ott-- echo $0 or ps -p $$ show you the shell you are currently running. echo $SHELL shows your login shell which may not be your current shell. –  Iain Dec 11 '11 at 18:51
1  
case you want bash auto-complete a .bashrc must be present, touch .bashrc is sufficient retype bash again (one time only) should do the trick. –  Bart Dec 11 '11 at 20:26

1 Answer 1

Have a look at the loadkeys function

$ man loadkeys

Maybe you just need to load the proper keymap corresponding to your keyboard layout. Have a look at the directory containing the keymaps (it varies between distributions: /usr/share/keymaps/, /lib/kbd/keymaps/, ...) and load the correct keymap.

Example to load the Spanish keymap:

$ loadkeys /lib/kbd/keymaps/i386/qwerty/es.map.gz
share|improve this answer
    
No explanation regarding the negative vote? –  jap1968 Jul 22 '12 at 19:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.