laura (professoryaffle) wrote in linuxnewbies,

commandline tab completion question

I have recently started at a new place of work and am faced with a new version of linux to work with

In my previous job the linux servers I would work on would tab complete environment variables which I found very useful

In my current job the linux servers don't seem to give tab completion on environment variables with either bash or tcsh

Is this an unusual feature

Is there anyway I can switch it on myself without having admin rights for the servers

its a really handy feature which I would like back

  • Post a new comment


    default userpic
Are you not able to tab complete anything?

ie, if you are in a directory *with files* and type

ls [tab] [tab]

what output do you get?

does it display the files? Does it tab the cursor forward twice?

Also, could you paste the output here of the following:

bash --version

as well as the output of:

uname -a


June 17 2008, 12:16:23 UTC 8 years ago Edited:  June 17 2008, 12:16:59 UTC

If I hit [tab][tab] the cursor just stays where it is neither moving nor specifying filenames from the current directory

if I start a path it completes to the point where it can not longer decide which name to pick. hitting tab again at that point does not give me the options but control d does

[laura@waterlily]$ bash --version
bash --version
GNU bash, version 3.1.17(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}"; echo -ne "\007"

waterlily> uname -a
Linux 2.6.9-34.ELsmp #1 SMP Thu Mar 9 06:23:23 GMT 2006 x86_64 x86_64 x86_64 GNU/Linux

Are you doing this in your home directory?


ls ~/ [tab][tab]

Tab completion results vary depending on directory permissions. So tab completion will work as expected in a directory you own, but won't in a directory that you don't have read access to/in.

Can you also paste the output of:

echo $PATH
it seems to have resolved itself,

probably means I was doing something wrong or have inadvertently fixed it while setting up other things in my shell

thanks for all your help