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.