Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the Windows 7 command line, pressing TAB completes to the first matching item (ie, folder or file). In most Linux shells I am aware of, like bash, TAB completion completes only up to the characters that are unambiguous and then you can either type the remaining character(s) yourself or get a list of completion options.

How can I make the Windows command prompt behave like this as well?

(While searching for this question, I've just discovered in another superuser question that pressing multiple times the TAB key will cycle through the options. This is very neat, and perhaps one day I'll actually favor it over the bash-type completion. But for now, my original questions still remains.)

share|improve this question
You can't, but you could download a third-party shell instead of using cmd.exe. – Harry Johnston Jul 7 '12 at 5:46
... in particular, see… – Harry Johnston Jul 9 '12 at 3:53
mingw includes a bash shell for windows. However, I have trouble with any auto copletion in it. – Vorac Jul 12 '12 at 15:15
I have used cygwin terminal for many years, well, I'm very familiar with bat scripts. I even discovered the goto bug in .bat file. I just don't see any advantage of cmd.exe over bash. Umm.. I'm not bashing cmd.. – Xiè Jìléi Jul 21 '12 at 14:26
For the opposite, making Bash tab completion work like Windows, see:… – Nathan Jan 16 '14 at 20:29

clink brings some Bash-like features to Windows command interpreter. It's portable and can be injected into cmd.exe automatically:

clink autorun --install
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .