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
- Zip files in Windows
- Write a bash script to print a particular line from a file
- Windows 10 –Feel the Difference
- Useful CMD commands for daily use in Windows OS
- IDE for Python programming on Windows
- How to find time taken by a command/program on Linux Shell?
- Building a terminal based online dictionary with Python and bash
- How to create a Folder without any name and icon in Windows OS?
- Uninstall Linux completely from a PC with Windows
- C++, OpenCV and Gtk3 Windows dev environment
- Setup GitLab Repository On Windows 10
- How to mount windows drives in Ubuntu
- Writing a Windows batch script
- Guide to Install MongoDB with Python | Windows
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.
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.