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.

link|improve this question

69% accept rate
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
feedback

1 Answer

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
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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