Bash can be configured and installed only on a 64-bit Windows Setup.
Bash Installation for Windows
- Head to Start > Control Panel > Programs > Turn Windows Features On Or Off.
- Enable the “Windows Subsystem for Linux” option in the “Windows Features On/Off” window as shown
- Click the “OK” button.
- Restart the machine when prompted with a “Restart now” alert box.
- After your computer restarts
- Open the Microsoft Store from the Start menu
- Search for “Linux” in the store.
- Click the link under the “Linux on Windows, Totally” banner labelled “Get the app” to initiate the download.
[9gagish advice: Please make sure you’re using your unmetered wifi to download this.]
- You’ll see a list of every Linux distribution currently available including
- openSUSE Leap
- openSUSE Enterprise
- Fedora (coming soon)
- Debian (coming soon)
- Kali Linux (coming soon)
- Choose a Linux distribution and click it
( If you’re have not made up your mind or looking for a more casual/ready to go experience in the Linux environment, we would recommend Ubuntu. Other Linux distro based subsystems are also available for professional use with a more specific requirement.)
(Multiple flavors of Linux distributions can be installed and run at a time – depending on machine capability – in separate windows if required.)
- Click the “Get” button/link to install it like other Microsoft Store Apps.
- Wait for the download and shell install to complete.
How to Access and Use Bash for Windows to Install Linux Software
Once the installation and setup from the previous section are complete since they’re the same binaries, you can use the installed OS’s default terminal syntax for software access and installation from its repositories.
Access to all typical Linux terminal commands, programs and non-GUI applications will work well. However, some applications may not yet work perfectly due to driver and OS specific base functions.
To open the Linux environment you installed
- Open the Start menu
- Search for the distribution you installed previously from the market steps above. If you installed the Debian based Ubuntu distro, click the Ubuntu shortcut.
- The application shortcut can be pinned for easier access to your Start menu/Taskbar/Desktop if you’re going to use it often.
- Please note that when initiated, the Linux environment prompts you to set a UNIX username and password. The Linux subsystem’s credentials don’t have to match your Windows credentials, rather it is adviced against using the same credentials for both. The subsystem credentials will be used only within the subsystem’s (Linux) environment as its sudo authentication credentials.
- Next launch the Linux environment by executing the
wslcommand. If multiple Linux distributions of the same distro or other flavors are installed, you can choose the default Linux environment this command launches by following the following options:
- In the Ubuntu OS, the
ubuntucommand to install and configure your subsystem.
- Similarly for openSUSE Leap 42, use
- Also for SUSE Linux Enterprise Server 12, use the
- In the Ubuntu OS, the
- And VIOLA! the windows version of your bash is ready and running.
If you’re interested in different variations of the shell to improve efficiency, features or aesthetics in your bash for windows shell check out our comparative ranking of the best terminal for the Unix Shell.
We would also recommend installing and using zsh as an addon for your Bash for Windows shell.
NOTE Software installed within the shell is restricted to the subsystem
and the shell. You can access these programs from the Command Prompt,
PowerShell in Windows, but only after executing