Step-By-Step: Enabling Bash on Windows 10

At Build 2016 Microsoft announced that Bash will be coming to Windows 10 via the future release of the Anniversary update.  Made possible through the partnership of Microsoft & Canonical, this first class experience is made available natively a Windows desktop and required no VM to be run.  The Windows Subsystem for Linux (WSL) is actually infrastructure within Windows operating a genuine Ubuntu user-mode Ubuntu image.

Further depth regarding the architecture to enable Bash on Windows 10 can be viewed here:

 

 

At the moment Windows 10 Insider Preview build 14316 or higher is required to enable Bash functionality and there are some limitations. Further functionality is being made available in future releases.  The following are the steps required to enable Bash on Windows:

  1. Using version Windows 10 Insider Preview build 14316 or higher, navigate to Settings > Update & Security > For developersWindows10_Bash_2
  2. Select the Developer mode switch to enable Developer Mode
  3. Navigate to Control Panel > Programs and select Turn Windows features on or off
  4. Select Windows Subsystem for Linux (Beta) and click OK In the Windows Features windowWindows10_Bash_3
  5. With the installation now complete, the computer will reboot to enable Bash on Windows 10
  6. Click on the start menu, type BASH and accept the Terms and ConditionsWindows10_Bash_4
  7. Click on the start menu again and type BASH or Ubuntu to run the Bash shell

 

The same Linux terminal commands are used within the Bash shell. The following are a few basic commands to be used in the Bash shell.

  • List Directory Contents: ls
  • Change Directory: cd
  • Create a Directory: mkdir
  • Copy a File: cp
  • Move or Rename a File: mv in Bash, move and rename in DOS
  • Delete a File: rm