Bash has been one of the most well-known feature of Linux distributions, which due to its flexibility as well as ease of usage, made it popular among programmers. The Windows’ operating system’s command line interface, cmd.exe, on the other hand, lacked various capabilities of it’s Linux counterpart.
Microsoft, therefore, in their Anniversary Update, added several features to the Windows 10 OS, with bash being one of them. To install and use it on Windows 10, one need to perform the following steps :
- Start -> Settings -> Update&Security. Under the ‘Use Developer Features’, select ‘Developer mode’.

- Selecting the developer mode will pop the following alert. Click yes, and let the computer restart.

- Go to Control Panel -> Programs and Features -> Turn Windows Features On and Off. In the window that appears, check the ‘Windows Subsystem for Linux’ option, and click OK.
- This will trigger an alert asking for the system to be restarted to complete the installation of the required components. After the restart is complete, go to the command prompt, and type ‘bash’. Follow the instructions that appear to install bash from Windows store. After it is installed, it will be required to create a UNIX username. After completing the installation, exit the prompt.
- To access the shell, simply type ‘bash’ in the Windows command prompt, and everything is good to go.
- Bash Script to get Low Battery Alert in Linux
- Write a bash script to print a particular line from a file
- Building a terminal based online dictionary with Python and bash
- How to Install Z Shell(zsh) on Linux?
- How to Fix Minimal BASH Like Line Editing is Supported GRUB Error In Linux?
- How to Install and Configure Fish Shell in Ubuntu?
- How to find time taken by a command/program on Linux Shell?
- Getting System and Process Information Using C Programming and Shell in Linux
- How to use Emojis in Windows 10?
- Tricks in Windows 10 | Set -1
- What is Robocopy in Windows?
- Zip files in Windows
- How to Use Android on Windows 10?
- Useful CMD commands for daily use in Windows OS
- How to Create a New User in Windows 10?
- How to Boost Performance in Windows 10?
- How to Hide a Folder in Windows?
- Windows Forensic Analysis
- Interesting Facts about WINDOWS
- Windows 10 –Feel the Difference
Note that bash runs natively on Windows 10, which is different from using emulators like ‘cygwin’ for Windows which enabled GNU tools to run on unsupported Windows environment. Also, Linux subsystem for Windows 10 is only available on the 64-bit version of the OS.
Recommended Posts:
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

