Install Bash (Ubuntu Linux Shell) On Windows 10

Discussion in 'Windows Guides' started by InsaneNutter, Mar 5, 2017.

  1. InsaneNutter

    InsaneNutter Resident Nutter Staff Member

    Joined:
    Jun 1, 2007
    Messages:
    11,517
    Likes Received:
    3,444
    Location:
    Yorkshire, England
    Sometimes you might just want a quick way to run a script designed for Linux on Windows, without having to boot a Linux device or Virtual Machine.

    Windows 10 has a full, Ubuntu based Bash shell that can run Linux software directly on Windows. This is made possible by the new Windows Subsystem for Linux Microsoft is adding to Windows 10.

    Think of it as the opposite of Wine. Wine allows you to run Windows applications directly on Linux, the Windows Subsystem for Linux allows you to run Linux applications directly on Windows, i bet a few years ago you never thought you'd see Microsoft support such a feature!


    How to Install Bash on Windows 10

    You need to be running a 64bit Version of Windows 10 and have at least the Windows 10 Anniversary Update. If you have had Windows 10 a while or recently installed it, you should have on the Anniversary Update or past that by now. Simply run Windows Update until you have no more updates to install, you will defiantly be good to go then.

    To install Bash go to the Settings app > Update & Security > For Developers. Activate the “Developer Mode” toggle here to enable developer mode, as shown below:

    windows-10-bash-1.jpg

    Say yes to turn on developer mode:

    windows-10-bash-2.jpg

    Now search for the Control Panel in the start menu.

    Once in Control Panel click on Programs and Features:

    windows-10-bash-3.jpg

    Then click on Turn Windows features on or off:

    windows-10-bash-4.jpg

    Enable the “Windows Subsystem for Linux (Beta)” option in the list here and click ok:

    windows-10-bash-5.jpg

    Windows will then enable bash, you then have to re start your computer.

    Once Windows has loaded again search for Command Prompt in the start menu and type bash, typing y to continue installing.

    The required files will then be downloaded and installed, this will take a few minutes as it mentions:

    windows-10-bash-6.jpg

    Once everything is setup you will be asked to create a username and password, remember these:

    windows-10-bash-7.jpg

    Congratulations, you now have a full working bash shell on Windows 10, aka Ubuntu on Windows 10:

    windows-10-bash-8.jpg
     

Share This Page