I use PuTTY to connect to an Ubuntu Server (VPS). I would like to use Tab-Completion when I'm working with the command line on Ubuntu Server... How can I configure it?

link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

Tab completion should work in PuTTY. Tab completion is provided by the shell you're running on the server, not by PuTTY itself. Please edit your question and provide more details including what shell you're using and what specifically happens when you try to use tab completion.

link|improve this answer
OK, thanks. How can I see what shell I am using? I have a Ubuntu VPS, so I guess it is the default one. Is it Bash? – Jonas Mar 12 '10 at 13:52
2  
try echo $SHELL to see what shell you're running. – Kevin M Mar 12 '10 at 13:57
Thanks. I'm running: /bin/sh – Jonas Mar 12 '10 at 14:03
What do you try and type which doesn't auto-complete? Do you press tab once or twice? Have you tried using bash instead of sh? (I think on Ubuntu /bin/sh is a symlink to /bin/bash but I could be wrong) – Josh Mar 12 '10 at 14:11
2  
Even if it's a symbolic link to /bin/bash, the executable might alter functionality depending on how it's called. Since Sanoj is seeing that the login shell is /bin/sh, it's probably acting like Bourne shell (sh) and not Bourne-again shell (bash). The best thing to do is to change your login shell. Try chsh /bin/bash – Doug Harris Mar 12 '10 at 14:20
show 5 more comments
feedback

Your Answer

 
or
required, but never shown

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