Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Apt-get <tab>, how does that work?< Next Oldest | Next Newest >
Kuro Offline





Group: Members
Posts: 2
Joined: April 2004
Posted: April 15 2004,18:58 QUOTE

How is it that when you type "apt-get install (first few letters of a package)<tab>" when running bash under rxvt, it can complete a package name? How is that implemented? I have many people wondering how that works, as it is a very useful feature.  Thank you in advance.
Back to top
Profile PM 
guille Offline





Group: Members
Posts: 32
Joined: April 2004
Posted: April 15 2004,19:50 QUOTE

What I know is that if you are in a console (root or not) if you type one or more keys and then press tab it shows you the list of command beggining with that leter/s and if there are a lot of them display and advice, something like:
"the keys you have pressed will show xxxxx commands do you like see? ((y/n)
For seeing a list of stuff with apt-get I type apt-cache search xxxx being in root mode
Cheers!


--------------
Gui
---------
Back to top
Profile PM ICQ MSN 
Grim Offline





Group: Members
Posts: 284
Joined: Mar. 2004
Posted: April 16 2004,08:39 QUOTE

Quote (Kuro @ April 15 2004,12:58)
How is it that when you type "apt-get install (first few letters of a package)<tab>" when running bash under rxvt, it can complete a package name? How is that implemented? I have many people wondering how that works, as it is a very useful feature.  Thank you in advance.

Command line completion is part of the shell, not actually part of apt or rxvt.  The shell, in this case, is Ash, provided by the busybox utility.


--------------
No good deed goes unpunished...
Back to top
Profile PM WEB 
2 replies since April 15 2004,18:58 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Apt-get <tab>

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code