How to install Ubuntu Bash on Windows 10
PowerShell
-Make sure you are running Powershell as an administrator.
-In Powershell run the following item:
PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
-Some required software will be downloaded.
-Please note there is no Linux operating system installed yet
-Once the download has completed it will ask if you want to reboot now or later.
Ie “Y” for now or “N” for later.
-Once the computer has been rebooted, open the command prompt or Powershell and type “bash”
-You will informed there is no Linux Operating system installed.
C:\WINDOWS\system32>bash
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Press any key to continue...
-Go to, https://aka.ms/wslstore, wls store, and download and install Ubuntu from the selection.
-Once installed it will provide a prompt to “Launch” or “Pin to Start”. Select “Launch”
-Watch the screen (it will display installing wait for a few minutes)
-Once completed, you will see the following :
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username:
-Follow the prompt by creating a username and password.
-Next, the following will displayed:
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
-To update Ubuntu :
sudo apt-get update
(I will ask for the password for your username)
-To upgrade the Ubuntu packages:
Sudo apt-get upgrade
Once everything has completed, you can exit at any time by typing “exit”