[Ilugc] Minutes of the Meeting - 12 Oct 2002

  • From: suraj@xxxxxxxxxxx (Suraj Kumar)
  • Date: Mon, 14 Oct 2002 13:17:55 +0530

hi,

Sriram Karra wrote on Mon, Oct 14, 2002 at 12:37:22PM +0530: 
karra> 
karra> 1. You are at the shell and you are about to type a command.
karra> 2. You get stuck somewhere because you do not know what is the name of
karra>    the flag that accomplishes your task.

Typically bash_completion can be programmed to do the task that you are
looking for. type the following and see what happens:

example #1: 

$ source /etc/bash_completion
$ apt-get <tab><tab>
--assume-yes      --list-cleanup    --trivial-only    -y
--build           --no-act          --version         autoclean
--compile         --no-download     --yes             build-dep
--config-file     --no-remove       -b                check
....
...
$ apt-get install foo<tab><tab>
fookb                  foomatic-bin           foomatic-db-gimpprint
fookb-plainx           foomatic-data          
fookb-wmaker           foomatic-db            

$ apt-get install foo

Example #2:

$ ssh <tab><tab>
171.64.67.68     203.199.197.48   64.38.242.11     freeshells.org
171.64.67.72     209.15.95.192    66.54.4.34       gpasokan.com
192.168.1.1      24.26.85.231     av.stanford.edu  suraj.sytes.net
203.197.130.30   63.194.20.32     symonds.net

$ ssh 

Now is a GUI necessary? (-:

   -Suraj
-- 
+-------------------------------------------------<suraj@xxxxxxxxxxx>--+
| One may survive the assault of foes but the                          |
| rebound of ones own evil is deadly                                   |
| (fear of evil deeds - 7), Thirukkural                                |
+--<http://www.symonds.net/~suraj/>------------------------------------+

Other related posts: