Disclaimer: This is the first release of Bash in Windows. It is in "Beta" version meaning it is not complete. Some things will work and some things will not.
Prerequisites:
- Your PC must be running a 64-bit version of Windows 10 Anniversary Update build 14393 or later.
To find your PC's CPU architecture and Windows version/build number, open Settings>System>About. Look for the OS Build and System Type fields.
If your build is below 14393, try checking for updates - Installation
In order to run Bash on Windows, you will need to manually: - Turn-on Developer Mode
- Enable the "Windows Subsystem for Linux (beta)" feature via the GUI or the command-line:
- Open Settings -> Update and Security -> For developers
- Select the Developer Mode radio button
- This will take a while depending on the speed of you internet connection.
Enable the Windows Subsystem for Linux feature (GUI)
- From Start, search for "Turn Windows features on or off" (type 'turn')
- Select Windows Subsystem for Linux (beta)
- Click OK.
Enable the Windows Subsystem for Linux feature (Command-Line)
- Open a PowerShell prompt as administrator and run: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Restart your PC.
Run Bash on Windows
- Open a command prompt
- Run bash.
After you have accepted the License, the Ubuntu user-mode image will be downloaded and a "Bash on Ubuntu on Windows" shortcut will be added to your start menu.
To launch Bash on Windows, either run
bash
at a cmd/PowerShell command-prompt, or use the start menu shortcut.After installation your Linux distribution will be located at:
%localappdata%\lxss\
This directory is marked as a hidden system folder because creating or modifying using Windows tools and apps may cause corruption and data loss in your Linux files. Please read this blog post for more information.Create a UNIX user
The first time you install Bash on Windows, you will be prompted to create a UNIX username and password.
This UNIX username and password can be different from, and has no relationship to your Windows username and password.
Reference:
https://msdn.microsoft.com/en-us/commandline/wsl/install_guide
Comments
Post a Comment