Getting Bash on Windows 10 is actually quite straightforward once you know the ropes. You’ll start by activating a special feature called the Windows Subsystem for Linux, which lets you build a hidden room in your computer for Linux. After a quick restart, you’ll pop into the Microsoft Store, just like you would for any other app, and pick out your favorite Linux flavor, like Ubuntu. Once that’s downloaded and installed, you simply launch it, create a new username and password, and boom, you’ve got a powerful Linux command line right on your Windows machine, ready for action! It’s a fantastic way to blend the best of both operating systems.
Tutorial – How to Install Bash on Windows 10
Alright, let’s get down to business. You want to unleash the power of the Linux command line on your Windows 10 machine, and I’m here to show you exactly how. It’s not as scary as it sounds, I promise. These steps will guide you through activating a special Windows feature, grabbing your favorite Linux flavor from the store, and setting you up for command-line glory.
Step 1: Enable Developer Mode
You need to turn on Developer Mode in your Windows settings to allow for certain system changes.
This step is like telling your computer, “Hey, I’m going to be doing some advanced stuff, so don’t be so restrictive.” It’s a prerequisite for installing some components of the Windows Subsystem for Linux, making sure your system is ready for the exciting changes ahead. Think of it as opening up a special toolbox.
Step 2: Turn on the Windows Subsystem for Linux Feature
Next, you must enable the Windows Subsystem for Linux feature in your Windows Features settings.
This is the real magic switch. Navigate to the “Turn Windows features on or off” section, find “Windows Subsystem for Linux,” and check that box. This crucial step installs the underlying framework that allows Linux distributions to run on Windows without needing a full virtual machine. It’s essentially creating a compatibility layer.
Step 3: Restart Your Computer
After enabling the feature, your computer will need to restart to apply the changes properly.
Don’t skip this part! A restart is essential because it finalizes the installation of the WSL components. Without it, the changes won’t fully take effect, and you might run into issues when installing a Linux distribution later on. It’s like letting fresh paint dry before you touch it.
Step 4: Open the Microsoft Store
Once restarted, open the Microsoft Store application on your computer.
The Microsoft Store is where you’ll find the actual Linux distributions, just like you’d download any other app. It’s a convenient one-stop shop for approved and ready-to-use versions of Linux, making the installation process super simple compared to older methods.
Step 5: Search for Your Preferred Linux Distribution
In the store, search for a Linux distribution like “Ubuntu” or “Debian” to install.
Ubuntu is a very popular choice, especially for beginners, but there are other options, such as Debian, Kali Linux, and SUSE Linux Enterprise Server. Pick the one that suits your needs or just go with Ubuntu if you’re unsure, as it has a massive community and lots of online resources.
Step 6: Install the Chosen Linux Distribution
Click “Get” or “Install” on your chosen distribution’s page to download and install it.
The store will handle the download and initial installation process. It’s pretty hands-off, just click the button and wait for it to finish. This step downloads all the necessary files to run your chosen Linux environment within WSL.
Step 7: Launch Your New Linux Distribution
After installation, launch the distribution from the Start menu or by clicking the “Launch” button in the Store.
When you launch it for the first time, a console window will pop up. This is your new Linux terminal! It might take a moment to “finish installing” during this initial launch, so be patient.
Step 8: Create a User Account and Password
You will be prompted to create a new Unix username and password for your Linux environment.
This is important for security and for managing your Linux system. This username and password are separate from your Windows credentials. Make sure to choose something you’ll remember, as you’ll use it for sudo commands and logging in within the Linux environment.
After you complete these steps, you will have a fully functional Bash shell running directly on your Windows 10 machine. This means you can execute Linux commands, scripts, and even install Linux-based applications without needing a separate virtual machine or dual-boot setup. It’s like having the best of both worlds, right there on your desktop.
Tips for Installing Bash on Windows 10
- Ensure Windows 10 is updated: Make sure your Windows 10 is fully updated to the latest version, especially version 2004 or higher, for the best WSL2 experience which offers improved performance.
- Consider WSL2 for better performance: While WSL1 works, WSL2 provides a full Linux kernel, leading to significantly better file system performance and broader system call compatibility, which is a huge benefit for many development tasks.
- Learn basic Linux commands: Once installed, familiarize yourself with fundamental Linux commands like
ls,cd,pwd,mkdir,rm, andsudoto navigate and manage your new environment effectively. - Install Windows Terminal: For a much better experience, download and use Windows Terminal from the Microsoft Store. It allows you to manage multiple command-line interfaces, including WSL, PowerShell, and Command Prompt, in tabs.
- Remember separate credentials: Keep in mind that your Linux username and password are distinct from your Windows login. You’ll need the Linux credentials for administrative tasks within your Bash shell.
- Access Windows files from WSL: You can easily access your Windows file system from within WSL. Your C: drive, for example, is typically mounted at
/mnt/c. - Explore different distributions: Don’t feel locked into Ubuntu. If you have specific needs, check out other distributions, such as Debian, Kali Linux for penetration testing, or OpenSUSE.
Frequently Asked Questions
What is Bash, and why would I want it on Windows?
Bash is a Unix shell and command language, essentially a text-based interface for interacting with an operating system. Having it on Windows lets developers, system administrators, and power users run Linux commands and scripts natively, without needing to set up a virtual machine or dual-boot. It bridges the gap between Windows and the vast ecosystem of Linux tools.
Do I need to be a developer to use Bash on Windows?
Absolutely not! While developers definitely benefit, anyone curious about the Linux command line or needing specific Linux tools can use it. It’s a fantastic learning environment if you want to explore operating systems beyond Windows, offering a powerful way to manage files, automate tasks, and even learn programming.
Is WSL the same as a virtual machine?
Not exactly. While WSL uses virtualization technology, it’s much lighter and more integrated than a traditional virtual machine. WSL2, for instance, uses a lightweight utility virtual machine, but it starts up much faster and uses fewer resources than running a full VM in software like VirtualBox or VMware. It’s designed to be seamless.
Can I run graphical Linux applications with WSL?
Yes, you can! With recent updates to WSL, specifically WSLg, you can now run graphical Linux applications directly on your Windows desktop. This means you can install a Linux web browser, IDE, or any other GUI application and have it appear just like a native Windows app. It truly blends the two operating systems.
What if I want to remove Bash or a Linux distribution from Windows?
Removing a Linux distribution is straightforward. You can uninstall it just like any other app from the Windows Start menu by right-clicking on its icon and selecting “Uninstall.” If you want to completely disable WSL, you can go back to “Turn Windows features on or off” and uncheck “Windows Subsystem for Linux.”
Summary
- Enable Developer Mode.
- Turn on Windows Subsystem for Linux.
- Restart your computer.
- Open the Microsoft Store.
- Search for a Linux distribution.
- Install the chosen distribution.
- Launch your new Linux distribution.
- Create a user account and password.
Conclusion
So, there you have it, folks! We’ve journeyed through the simple yet incredibly powerful process of bringing the Linux command line, specifically Bash, right to your Windows 10 desktop. It’s a transformative capability that Microsoft introduced, breaking down barriers between two traditionally separate operating system worlds. No longer do you need to juggle virtual machines, deal with dual-boot complexities, or resort to third-party tools that might not offer the native feel. With Windows Subsystem for Linux, you’re essentially getting a full-fledged Linux environment integrated seamlessly into your existing Windows setup, offering unparalleled flexibility and power.
Think about it: you can be working on a C# project in Visual Studio, then flip over to a WSL terminal to compile some C++ code with GCC, run a Python script, or manage your web server using standard Linux utilities, all without leaving your Windows desktop. It’s like having two powerful engines running in one sleek vehicle. For developers, this means a faster, more efficient workflow. For students, it’s an incredible learning tool, providing a safe sandbox to explore the vast world of Linux commands and scripting without the fear of messing up your main operating system. For IT professionals, it opens up a wealth of diagnostic and management tools that simply aren’t native to Windows.
The beauty of this setup lies in its versatility. Want to dive into web development using Node.js or Ruby on Rails? WSL provides the perfect environment. Looking to automate repetitive tasks with shell scripts? Bash is your best friend. Even if you’re just curious about how Linux works, installing a distribution like Ubuntu through the Microsoft Store is the easiest entry point imaginable. Remember to keep your Windows system updated, especially if you want to leverage the performance benefits of WSL2 and run graphical Linux apps. Also, consider installing Windows Terminal for a superior command-line experience.
This integration isn’t just about convenience, it’s about empowerment. It gives you, the user, more choices and more control over your computing environment. It’s a testament to how modern operating systems are evolving to meet the diverse needs of their users. By following the steps outlined today to install Bash on Windows 10, you’ve unlocked a new dimension of productivity and potential. Don’t hesitate to experiment, explore, and learn. The Linux world is vast and welcoming, and now, it’s literally at your fingertips on Windows. Go forth and command!

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.