Re: double-tab Command in Linux

From: Jeremy Gray (gray_at_euthanasia.ath.cx)
Date: 11/20/03


Date: Thu, 20 Nov 2003 03:47:48 GMT

Buck Turgidson <jc_va@hotmail.com> wrote:
> I recently found out about a command in Linux and apparently Solaris that
> allows you to type a letter, say 'a', and then the tab key twice, and you'll
> get back all the commands that start with 'a'.

It's tab completion, and it's present in shells, editors, and surely
other programs. Read the "programmable completion" part of man bash for
more details. In bash, it's far more powerful than just listing
executables in your path.

-- 
Jeremy A. Gray
gray@metacomet.net
"Remember the Pueblo." -- the Fourth Law of Marvin


Relevant Pages

  • Re: simple trick
    ... C and Korn shell - mid 1980s ... So first I us ls and tab completion to get the right file and hit return. ... Write in whatever your "new" command is plus the separating space, ... It's all in the man page for the Bash shell - try 'man bash' ...
    (linux.redhat)
  • Re: OneFinger - the graphical shell
    ... >> i.e. bash, but bash is also very powerful and to me its powerfull enough ... >> (its also does caching, narrowing, ... tab completion has always been a kind of pain to me. ... options as with command completion when there is more than one ...
    (comp.os.linux.misc)
  • Re: [MSH] Tab Completion in MSH vs. Bash
    ... One thing that got my annoyed though was the command / tab completion. ... Since I'm no new to Monad I might just be wrong about this, but the completion in Monad seems to work the same way it did in Windows 2k/xp/2003. ... Since there are so many other improvements in monad I guess I was hoping for some better command completion. ... I think it would be better if it worked the same way as it does in bash, if I see all the options on screen I get where I want faster. ...
    (microsoft.public.windows.server.scripting)
  • Re: USB neu starten
    ... PCI Interrupt Link enabled at IRQ 7 ... bash: SLPB: command not found ... bash: syntax error near unexpected token `supports' ... achim@achim:~$ ReiserFS: hdc5: found reiserfs format "3.6" with standard journal ...
    (de.comp.os.unix.linux.hardware)
  • [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.30)
    ... This is the Bash FAQ, version 3.30, for Bash version 3.0. ... Bash, the GNU Bourne-Again Shell. ... C3) Which new features in ksh-93 are not in bash, ... D1) Why does bash run a different version of `command' than ...
    (comp.unix.questions)