How to Install Bash on Windows 11: A Step-by-Step Guide for Beginners

On Windows 11, the usual way to get a Bash environment is Windows Subsystem for Linux (WSL). It installs a Linux distribution that can run Bash alongside Windows without requiring a traditional dual-boot setup.

Install WSL and Bash

  1. Right-click Start and open Terminal (Admin).
  2. Run wsl --install.
  3. Restart the computer if Windows asks you to.
  4. Open the installed Linux distribution from Start.
  5. Create the Linux username and password requested during first-time setup.

The default distribution can vary, and you can list available distributions with wsl --list --online. A specific distribution can be requested with the supported WSL install options.

Bash in WSL is not the same as Command Prompt

Commands run inside the Linux environment can behave differently from Windows commands and use Linux paths and permissions. Keep Windows and Linux instructions distinct, especially when a command modifies or deletes files.

If WSL installation is blocked on a managed computer, check with the organization’s administrator because virtualization and optional Windows components may be controlled by policy.

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy