Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I use Linux and a Mac.
I'll be teaching some command line stuff soon.
What can I install on Windows to give me a terminal window most similar to a basic mac/linux bash shell.
Would like to be able to define .bash_aliases as well if possible.

share|improve this question

migrated from Jun 15 '13 at 19:54

This question came from our site for professional and enthusiast programmers.

we used putty to connect to a real linux server. on windows I was always both reluctant and tempted to use cygwin, reluctant because of my clumsy install experience. But personally, i found it more convenient to use than msys and faster than a vm. once installed, cygwin turns out somehow portable simply copying it's directory is enough, however it will create a new username on each machine/user based on the windows username (by default, at least). But keep in mind that since cygwin/msys can been seen as a custom "distribution", some [optional] command switches may be missing. test them. – n611x007 Jun 15 '13 at 14:37
Microsoft just announced that the next update of Windows 10 will include Bash. – Dmitri Nesteruk Mar 31 at 6:46
up vote 28 down vote accepted

You could install cygwin ( or msys/mingw (, or you could install a full Linux distribution in a virtual machine (for example using virtualbox).

share|improve this answer
I used a cygwin that was 135 mb (25 mb packed), copied from another computer (portable). it created a new username based on the new computers current user, and worked perfectly otherwise. my current cygwin is 800 mb, with a build environment, 200-300 mb source code and some stuff. – n611x007 Jun 15 '13 at 14:44

Bash shell will be natively available on Windows 10 via the Anniversary Update for summer 2016, as per Microsoft's announcement during the /build 2016 conference.

Back in 2015 project Astoria was started to bring Android apps to Windows and they built a Linux subsystem called Windows Subsystem for Linux (WSL) for the purpose. Eventually project Astoria was dropped as it undermined their UWP (Universal Windows Platform) strategy, but some parts were retained and form the basis of bash for Windows.

Over the course, Microsoft collaborated with Canonical (creators of Ubuntu Linux) to provide them with a native image with all supported tools/binaries.

More information available here, (video)

share|improve this answer

There's also Clink available at GitHub. It integrates itself into windows command prompt using hook libraries.

I use Linux at work and find myself sometimes tabbing around in cmd which does not act like I expect it from Bash. With Clink I can overcome some of these shortcomings.

Lately, I also discovered a promising, but not yet 'can-do-all' project called flinux which emulates Linux system functions and provides some kind of a system on top of it (currently based on Arch Linux)

share|improve this answer
Does Clink actually change the language, or it only improves something in cmd.exe? This is not entirely clear from the answer. – Sarge Borsch May 31 '15 at 19:35
It enables you to use some of the usual *nix shell features, such as reverse search using Ctrl+R, a PATH searching command completion etc. – Andreas Jun 1 '15 at 12:13
So it is not a bash implementation, right? – Sarge Borsch Jun 1 '15 at 13:20
Erm, no. An extension to cmd.exe, just as described on the site ;) – Andreas Jun 1 '15 at 13:32

I would suggest you download and install a minimal set of MinGW and also minimal set of MSYS. The MinGW installer gives you an easy GUI to chose what packages you want installed. If all you want is BASH, then the installation won't take more than few megabytes.

UPDATE: I moved to the MSYS2 which is far more advanced, and has port of ArchLinux pacman tool for package management. MSYS2 installer has everything you need, plus it uses mintty which is absolutely perfect .

share|improve this answer

In addition to what faffaffaff said, Git for Windows includes bash and some common Linux command-line programs (e.g. vim, sed, gawk). It's based on MSYS. The version of the programs is old though, for example bash is version 3.1. cygwin would have more recent versions of the utilities.

I also use ConEmu as terminal emulator (mainly for syntax highlighting in vim, tab pages, easier copy-pasting). console2 is also another popular terminal emulator though I haven't tried it.

share|improve this answer
BTW: ConEmu also recognizes MSYS2 installations and allows for some Clink integration. – Andreas Jun 1 '15 at 12:15

This is one of the first things I do when I set up a new Windows machine:

A functional and sleek console in Windows

share|improve this answer
Make sure to add an excerpt from the link to prevent the effects of link rot. – oldmud0 Jun 16 '15 at 23:05

just tried with babun, which integrated the cygwin internally, taste good to me : )

Download file slightly big, around 250MB. But installation is straight forward, no need to configure anything and it just work!

share|improve this answer
Babun includes whole cygwin, it's really insanely huge. The installation process is a bit hacky (currently the zip archive is blocked by chrome as a dangerous file). But so far best terminal replacement I've found. – Tombart Dec 17 '15 at 8:41

protected by bwDraco Aug 2 '15 at 13:57

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.