Share this article

Improve this guide

How to Add Bash Shell to Windows 10

Perform a quick Registry modification or use File Explorer’s settings

2 min. read

Updated onOctober 4, 2023

updated onOctober 4, 2023

Share this article

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

Key notes

Want to include the bash shell option in the folder (right-click) context menu so that you can access it quickly?

It is possible, and here in this article, you will check the detailed guide on how to do that.

What is Bash Shell?

What is Bash Shell?

Windows 10 Anniversary update introduced lots of useful and new features to make the operating system more productive for normal users as well as developers.

In this update, the company introduced the dark mode accompanied by Bash Shell, a Linux command-line tool produced specifically by keeping developers in mind, and it is really a big deal.

Here in this article, we will show all the steps that help in adding a new option in the right-click context menu to run the Bash on the desired folder using the Registry Editor.

How can I add Bash to Windows 10?

How can I add Bash to Windows 10?

1. Edit the Registry

By default, Ubuntu Bash is disabled, and users who want to use it on Windows 10 need to enable it manually.

Once the Ubuntu Bash shell is enabled one can easily launch it right from the Start menu. In case, you’re a developer and use it frequently; then you will definitely love to have it in the folder right-click the context menu so that you can quickly launch the Bash console in any folder with one click.

Before following the steps in the upcoming line make sure that the Bash Console is enabled and configured already. Bash Shell is only available in the Windows 10 Update 1607 and above build.

  1. Press theStartbutton on the taskbar to open the search box and typeregeditin it, then click on the first result to open the Registry Editor window.

2.In the registry editor, you need to head over to the following key:HKEY_CURRENT_USER\SOFTWARE\Classes\Directory

3.Here in this directory,you need to make a right-click onDirectory>New>Keyin order to create a new key, and then name itshell.

4.Under Shell, you need to create another subkey and name itrunbashshellhere.

5.Now select the newly created subkey i.e.runbashshellhereand head over to the right pane.

Here double click on the default value (unnamed) underrunbashshellheresubkey and under Value Data, set its data toRun Bash Shell Here.

  1. Underrunbashshellheresubkey, you need to create a newExpandable String Value.

7.Now double click on theicon(Expandable String Value) andSet its value datato the following data:%USERPROFILE%\AppData\Local\lxss\bash.ico

8.Now underrunbashshellherekey, you need to create a new key and name itcommand.

9.Here double click on the default value (unnamed) under the command subkey and under Value Data, set its data to:cmd.exe /c cd /d “%V” && bash.exe

10.You have successfully added Bash to Windows 10.

2. Via File Explorer

In case, you’re not comfortable editing the registry keys, then don’t worry. There is also an alternative method available to run the Bash Shell without touching a single registry quickly. Here is what you need to do:

For example, if you are inC:\Windows, and use the address bar for the same, then the bash shell will launch on/mnt/c/Windows.

That’s about it. Hope you are now able to Add Bash Shell to Windows 10.

Why don’t you give a try to this amazing trick and let us know if you find it useful or not? If you have any queries drop them in the comments.

More about the topics:Windows 10 Guides

Claudiu Andone

Windows Toubleshooting Expert

Oldtimer in the tech and science press, Claudiu is focused on whatever comes new from Microsoft.

His abrupt interest in computers started when he saw the first Home Computer as a kid. However, his passion for Windows and everything related became obvious when he became a sys admin in a computer science high school.

With 14 years of experience in writing about everything there is to know about science and technology, Claudiu also likes rock music, chilling in the garden, and Star Wars. May the force be with you, always!

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Claudiu Andone

Windows Toubleshooting Expert

Oldtimer in the tech and science press, with 14 years of experience in writing on everything there is to know about science, technology, and Microsoft