How to get Bash on Windows 10

Are you a developer using both windows and Ubuntu either by dual boot or virtual thing and worried about your system performance, here is a solution for it given by Microsoft in their Anniversary update for windows-10.

Bash shell is simply a command-line utility that has been part of Linux for a long time, and it's often used by developers. Microsoft added it directly into Windows 10 with the Anniversary Update.

Microsoft and Canonical (the company behind Ubuntu) collaborated to bring a version of Bash that runs in the new subsystem alongside Windows applications. But don't get confused, this isn't Linux on Windows either, it's just a tool that allows you to run the same commands as if you were using a Linux computer.


How to get the Windows 10-Anniversary update:


Steps to update to 1604 version:

If you’re using an up-to-date Windows 10 system (i.e. version 1604), you can install it directly . 
Or
Go to settings app > update and security check for updates install the 1604 update and you should be using 64-bit operating system. After installing and restarting the system.

Steps to install bash:

·      Go to settings app
·      Click on Update and security
·      Select For developers from the left menu.
·      Select developer mode (radio button)
·    Click yes on the pop box.
·      Necessary components will be installed
·      After that restart your pc
·      Once your pc reboots,
·      Go to control panel > Programs
·      Click on Turn Windows features on or off.
·      Check the Windows Subsystem for Linux (beta) option, some installations happen.
·      Click okay and reboot your pc
·      After reboot search for bash.exe from search box and open it
·      Bash opens in cmd, type y and enter. the bash gets installed from windows store.
·      You need to create your own Unix account (username and password)


Now that you completed the installation and setup, you can open the Bash tool from the Start menu like you would with any other app.







No comments:

Post a Comment

StatCounter

View My Stats