IITDU Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Fixing the auto completion used by tab key in terminal

Go down

Fixing the auto completion used by tab key in terminal Empty Fixing the auto completion used by tab key in terminal

Post by BIT0122-Amit Thu Mar 25, 2010 9:38 pm

After a long time, I reinstalled Ubuntu inside Windows 7.
After the fresh install, first thing I did was opening the terminal(as usual).
However, when I tried to change directory, I realized that pressing the tab key doesn't auto complete the directory names for me.

for example, if the directory is Documents, and if I write
cd Docu
then it will write cd Documents automatically.

But that was not working.
After searching for some time, I found the solution.
The auto completion is used through a package called bash-completion. If the auto complete is not working properly, you can try reinstalling and rebooting.

To remove bash completion, write:
Code:
sudo apt-get remove bash-completion

and to re install it, write
Code:
sudo apt-get install bash-completion


That will do the trick Very Happy
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum