![]() |
2012-08-05
, 14:12
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#2
|
![]() |
2012-08-05
, 14:51
|
Posts: 1,100 |
Thanked: 2,797 times |
Joined on Apr 2011
@ Netherlands
|
#3
|
The Following 4 Users Say Thank You to ade For This Useful Post: | ||
First we need to install the Bash package with 'sudo apt-get install bash'. The Bash package comes with a smart tab completion for apt-get. However, it is not turned on by default. To turn it on globally we have to uncomment the relevant lines by editing the /etc/bash.bashrc file.
Change the following lines
Execute 'bash' to get a bash shell:
Now for example, if we type 'apt-get [TAB]' we'll see a list of available commands:
This could be helpful sometimes, the amazing part comes here:
If we type 'apt-get remove x[TAB]' a complete list of installed packages starting with the letter x shows up. When installing, we'll get a list of all available but not installed packages starting with x. And it also works in the same way with 'apt-cache'.
more Examples:
# apt-g[TAB] i[TAB] cssu[TAB]
# apt-c[TAB] po[TAB] kernel-p[TAB][TAB]
After some time you'll wonder how you ever did without it.
Last edited by conred; 2012-08-05 at 20:23.