Microsoft has partnered with Canonical, the makers of Ubuntu, to create the Windows Subsystem on Linux (WSL), which allows Windows 10 users to use Linux command line tools such as such as
git on Windows files through Bash.
In order to install Bash/WSL, the Windows 10 OS must be a 64-bit version of Windows 10 Anniversary Update build 14393 or later. In Windows 10 , open the Settings app > System > About to check if the Windows 10 version is compatible. Bash/WSL cannot be installed on Windows 7 or Windows Server editions, currently only Windows 10 is supported.
- First, turn on Developer Mode, open the Settings app > Update & security > For developers > Select the Developer radio button
- Enable the Windows Subsystem for Linux, this can be done by turning on the feature through the Windows Features program or through a PowerShell session
- For the GUI method: Go to Control Panel > Programs and Features > Turn Windows features on or off (this will require local administrator privileges > Check the box for Windows Subsystem on Linux
- For PowerShell method (in an elevated/administrator session) use the command:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Restart the system
- Open a command prompt or PowerShell session, and then run
- After accepting the license, the Ubuntu user mode image will be installed.
bash in a command prompt or PowerShell session to enter bash. There is no GUI that is installed, nor can be installed. The linux installation is located at
%localappdata%\lxss\, which is a hidden system folder.
|Do not use Windows tools to edit this directory as corruption of the Linux files could occur.|
Windows storage and files can then be accessed from
/mnt/..., such as