DEV Community

Cover image for Running Linux Bash Shell in Windows ๐Ÿคฏ
Marcos Henrique
Marcos Henrique

Posted on

Running Linux Bash Shell in Windows ๐Ÿคฏ

Linux on Windows is a reality ๐ŸŽ‰๐ŸŽŠ

The Windows 10 anniversary upgrade is here and now you can easily get Bash on Windows.

Let's talk about the steps ๐Ÿ˜‹

First Step: Enable โ€œWindows Subsystem for Linuxโ€ ๐Ÿค”

The first thing you need to do is to enable Windows Subsyetm for Linux feature from PowerShell.

Go to the Start menu and search for PowerShell.

Run it as administrator:

Once you have the PowerShell running, use the command below to enable Bash in Windows 10.

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enter fullscreen mode Exit fullscreen mode

Confirm your choice.
Type Y or press enter:

Now you should be asked to reboot your computer.
Even if you are not asked to, you must restart your system.

Second Step: Download a Linux system from the Windows store ๐Ÿค“

Once your system has rebooted, go to the Windows Store and search for โ€œLinux.โ€

For default I selected Ubuntu, because I have more familiarity with Ubuntu than another Linux distributions.

Last Step: Run Linux inside Windows 10 ๐Ÿ‘จโ€๐Ÿ’ป

You are almost there.
Once you have installed Linux, itโ€™s time to see how to access Bash in Windows 10.

Just search for the Linux distribution you installed in the previous step. In my case it was Ubuntu.
Youโ€™ll see that it runs like a normal Windows application.

It will take some time installing and then youโ€™ll have to set up the username and password.

After all you'll see this beautiful console image:

Donโ€™t worry, itโ€™s just for the first run.
Bash shell will be available for use directly from the next time onwards.

Now enjoy Linux inside Windows 10.

Top comments (9)

Collapse
 
tobiassn profile image
Tobias SN

WSL isnโ€™t new.

Collapse
 
wakeupmh profile image
Marcos Henrique

But still awesome ๐Ÿ˜Œ

Collapse
 
tobiassn profile image
Tobias SN

I agree, but itโ€™s still misleading to claim that itโ€™s a new feature.

Thread Thread
 
wakeupmh profile image
Marcos Henrique

where in my post did i say this is something new? Just said it's a reality and now it's easy to add โ˜บ๏ธ

Thread Thread
 
tobiassn profile image
Tobias SN

The Windows 10 anniversary upgrade is here and now you can easily get Bash on Windows.

Also, itโ€™s as easy as it has always been.

Thread Thread
 
wakeupmh profile image
Marcos Henrique • Edited

Kkkkkkk you are anoying

Thread Thread
 
devdrake0 profile image
Si

When did "now" mean "new"?

I can now eat some food. That's not a new thing, I've been pretty good at it for nearly 30 years!

Thread Thread
 
tobiassn profile image
Tobias SN

In the way it was used, it implies that something is a certain way which it wasn't before. For example, "I can now eat some food." implies that previously, the person speaking couldn't eat.

Thread Thread
 
devdrake0 profile image
Si

I think you're seriously overthinking this whole thing. The guy made a post about something useful, and you're basically targeting him because he used the wrong language.

It's shit like this that puts people off posting again, so stop it.