How to Install Bash on Windows 11: A Simple Aussie Guide

How to Get Bash Working on Windows 11

Installing Bash on Windows 11 might seem a bit fiddly at first, but it’s pretty straightforward once you get the hang of it. Basically, you’re setting up Windows to run Linux commands through something called the Windows Subsystem for Linux (WSL). This means you can chuck Linux commands straight into Windows without needing to run a virtual machine or dual-boot. If you’re into coding, or just keen to tinker with Linux tools, this setup is like having a secret doorway to a whole new world.

The process? It’s a matter of turning on a couple of Windows features and grabbing a Linux distro from the Microsoft Store. Sometimes the steps can be a bit hidden or not super smooth, which can be a bit frustrating — but once you’ve done it, it’s well worth the effort.

Steps to Enable Bash on Windows 11

Open Windows Features

First up, bring up the Windows Features dialog. Just type “Turn Windows features on or off” into the Start menu search, select it, and a window should pop up — though sometimes you might need to try a couple of times as it can be a bit sneaky. In that panel, you can toggle various Windows capabilities. Heads up: some folks miss the checkbox, so give it a good look.

Enable Windows Subsystem for Linux

Scroll through the list and find “Windows Subsystem for Linux”. Check the box, click “OK”, and then you’ll need to restart your machine. Sometimes, the checkbox won’t tick right away, or Windows decides it’s time for a reboot to finish the setup. It can be a pain, but you’ve gotta do it so the system can set up the new bits. After the restart, WSL will be enabled, but it’s not quite ready to roll just yet.

Head to the Microsoft Store

Once your PC’s back up, open the Microsoft Store from the Start menu — though if your start menu’s a bit customised, finding it could be a little adventure. The Store is where you grab your Linux distro, like Ubuntu or Debian. It’s like browsing a new app shop, but these apps are full Linux environments. Pretty neat, eh? You get to run Linux inside Windows without all the usual fuss.

Search and Pick Your Linux Distro

Type “Linux” into the Store’s search bar, and you’ll see options from Ubuntu to Debian and Kali. Ubuntu’s a popular choice for newbies — it’s user-friendly and has heaps of guides. The distro you choose does matter somewhat, especially for scripts or compatibility. If unsure, Ubuntu’s usually a safe bet. But hey, it’s up to you!

Install Your Chosen Linux Distro

Click “Get” or “Install” on your pick. Download times depend on your internet speed and how busy your server is. When it’s done, you’ll be asked to create a username and password for your Linux environment — don’t mix it up with your Windows login. Once set, you can open your Linux terminal — either from the Start menu or by typing wsl in Command Prompt or PowerShell. Your new Linux shell will pop up, ready to go.

And there it is — a shiny new Linux terminal ready for action. You can run Bash scripts, manage files, or develop directly in this environment, all while Windows keeps chugging along beside it. Surprisingly smooth once you get past the initial setup.

Tips for Installing Bash on Windows 11

  • Make sure your Windows 11 is fully updated before starting; missing updates can cause WSL all sorts of grief. Check via Settings > Windows Update.
  • Pick your Linux distro based on what you want to do — Ubuntu is pretty versatile, Debian’s more stable, and Fedora tends to be a bit cutting-edge.
  • If things go sideways, don’t stress — Microsoft’s official WSL docs are a lifesaver for troubleshooting. Check out Microsoft’s WSL guide.
  • Keep your WSL environment sorted with wsl --update in PowerShell or Command Prompt. It’s like giving your setup a quick health check.
  • If you want WSL 2 (which is better for performance), run wsl --set-default-version 2. Just make sure virtualization is enabled in your BIOS — look for settings like Intel VT-x or AMD-V. To check if it’s on, open Task Manager (Ctrl + Shift + Esc), go to the Performance tab, then select CPU and look for the Virtualization line.

FAQs

What’s the Windows Subsystem for Linux all about?

WSL is like a handy translator that lets Linux binaries run straight on Windows 11. It’s a neat little layer that doesn’t need virtual machines or dual-booting — just runs the Linux commands inside Windows, seamlessly. It’s the best of both worlds in one tiny package.

Can I have more than one Linux distro on the same PC?

Absolutely. The Microsoft Store lets you install a few Linux distros side by side. Managing them is a breeze with commands like wsl --list --verbose to see what’s installed, and wsl --set-default <DistroName> to choose your main one. Easy as.

How do I update my Linux distro?

Most distros have their own update commands. For example, Ubuntu users can run sudo apt update && sudo apt upgrade inside the Linux terminal. Keeping things up-to-date ensures smooth sailing.

What’s the difference between WSL 1 and WSL 2?

WSL 2 has its own full Linux kernel, so it’s heaps better for compatibility and speed compared to WSL 1, which uses translation layers. If your PC can handle it, go WSL 2. Check your version with wsl --list --verbose.

Do I need to enable virtualization in BIOS for WSL 2?

Yeah, you do. Virtualization needs to be turned on in your BIOS — usually called something like “Intel VT-x” or “AMD-V.” Forgetting this can cause performance issues or features not working properly. Best to double-check.

To Wrap It Up

Getting Bash running on Windows 11 isn’t some huge nightmare. It’s mainly about flicking some switches, turning on WSL, grabbing a Linux distro, and hitting install. If it doesn’t go smoothly the first time, just take a deep breath and try again. Some quirks might trip you up, but once you get the rhythm, it’s easy as.

Hopefully, this saves a fair bit of time for someone off to do it themselves.