> ## Content Index
> Fetch the complete content index at: https://winerror-repair.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Run Linux on Windows 11 with WSL: Install and Start
- URL: https://winerror-repair.org/run-linux-on-windows-wsl/
- Published: 2026-11-23T04:59:53.000Z
- Updated: 2026-11-23T04:59:53.000Z
- Description: Choose WSL for Linux tools inside Windows, then install a distribution, create its user and confirm the shell and file paths work.
- Author: Daniel Hayes
- Tags: Windows system file repair

**On Windows 11, open PowerShell as administrator, run `wsl --install` and restart to install Windows Subsystem for Linux with Ubuntu.** Open Ubuntu after the restart and create its Linux username and password. WSL runs Linux tools inside Windows without replacing your Windows installation or asking you to divide the disk into Windows and Linux boot partitions.

I'd choose this route for a Linux shell and development tools while keeping Windows applications available. If the task is to test a complete Linux desktop or its installer, choose a conventional virtual machine instead. Booting Linux directly on the hardware is a different installation plan.

## Choose the environment you need

| Your task                                                     | Choose                                                                                           |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| Use Bash and Linux tools alongside Windows apps               | WSL, using the installation below.                                                               |
| Explore a full Linux desktop and OS installer inside a window | A conventional Linux virtual machine, configured with that tool's requirements.                  |
| Boot the PC directly into Linux                               | A separate dual-boot or replacement installation, with backups and a reviewed storage/boot plan. |
| Use a Linux environment without local installation rights     | An approved remote Linux service provided by your organization or school.                        |

WSL 2 uses a real Linux kernel in a lightweight utility virtual machine. It isn't the old WSL 1 system-call translation architecture. Microsoft's [WSL architecture overview](https://learn.microsoft.com/en-us/windows/wsl/about?ref=winerror-repair.org) explains that distinction. You don't have to configure a separate traditional VM to follow this WSL route, but the virtualization requirements still matter.

## Check for an existing distribution before installing

The current installation command supports Windows 11 and Windows 10 version 2004, build 19041 or later. This walkthrough uses Windows 11; an older compatibility minimum isn't a recommendation to keep an unsupported Windows installation. On a managed PC, have IT approve the software and required Windows features.

Back up important Windows files and any existing Linux project data before changing an installation. If you may already have WSL, open a Windows PowerShell or Command Prompt window and inspect it first:

```
wsl --list --verbose
```

This lists installed distributions, their running or stopped state, and whether each uses WSL 1 or WSL 2\. If the distribution you need is already present, open it instead of installing another copy. If the information command itself fails, keep its exact response and Windows version; don't remove an existing distribution to make the list empty. A stopped distribution can be started; it isn't an installation failure. For the available commands on your installed WSL, use `wsl --help`.

## Install WSL and the intended Linux distribution

1. Save open work and plan for a Windows restart. Search Start for **PowerShell**, select **Run as administrator** and approve the intended Windows prompt. If administrator credentials are required and you can't provide them, cancel and use the administrator's approved installation route.
2. For a fresh installation using the default Ubuntu distribution, enter the documented Windows command below.

```
wsl --install
```

[![Windows PowerShell with the wsl --install command entered before execution.](https://storage.ghost.io/c/a6/05/a605dee4-a7e9-4ae9-b795-ec5121bbb083/content/images/2026/11/wsl-install-command-v2.webp)](https://storage.ghost.io/c/a6/05/a605dee4-a7e9-4ae9-b795-ec5121bbb083/content/images/2026/11/wsl-install-command-v2.webp?ref=winerror-repair.org)

Enter the command in Windows PowerShell. The example user folder isn't a path to copy; the command is wsl --install.

The [Microsoft WSL installation procedure](https://learn.microsoft.com/en-us/windows/wsl/install?ref=winerror-repair.org) enables the required features and installs the default Ubuntu distribution. Follow the installation messages, then restart Windows. Don't assume a completed download means the first Linux-user setup has finished.

For a different distribution, or when `wsl --install` displays help because WSL is already installed, first list the available names in Windows:

```
wsl --list --online
```

Use the exact offered distribution name. For example, if **Ubuntu** is the intended listed choice:

```
wsl --install -d Ubuntu
```

Replace `Ubuntu` when choosing another listed distribution. Don't copy a particular old Ubuntu release merely because an older tutorial used it. If a distribution download stays at 0.0%, Microsoft documents the online alternative `wsl --install --web-download -d Ubuntu` for that selected distribution. This still needs network access and your organization's permission; it isn't an offline installer or a policy bypass.

## Create the Linux user after the restart

Open the installed distribution from Start, for example **Ubuntu**. Its first launch may take time while files are unpacked. Follow the user-creation prompts and choose a username and password for that Linux distribution.

**Nothing appears while typing the Linux password, including no dots.** Type it deliberately and complete the confirmation prompt. That behavior doesn't mean the keyboard stopped working. Microsoft's [first-user setup instructions](https://learn.microsoft.com/en-us/windows/wsl/setup/environment?ref=winerror-repair.org) explain the hidden password entry.

The Linux account is separate from your Windows sign-in. Its credentials are specific to the distribution, and the initial user can run administrative Linux commands with `sudo`. Creating it doesn't replace your Windows password. Linux distributions installed this way belong to the Windows user who installed them; another Windows user doesn't automatically share that environment.

## Verify the distribution and open it again

In a **Windows** PowerShell or Command Prompt window, list the installation again:

```
wsl --list --verbose
```

Confirm that the intended distribution is present. Fresh distributions installed with `wsl --install` use WSL 2 by default. The list's **VERSION** column means WSL 1 versus WSL 2; it isn't the Ubuntu release number or the WSL application's package version.

Open that distribution from Start, or select it by the exact installed name in Windows:

```
wsl --distribution Ubuntu
```

In the **Linux shell**, enter `cd ~` to return to the Linux user's home directory. For a simple file check, choose a filename that doesn't already exist in that home directory. These Linux command examples create an empty file and list it: `touch wsl-first-check.txt`, then `ls -l wsl-first-check.txt`. Use that same filename after closing and reopening the same distribution to confirm it remains accessible. Use `exit` to leave the Linux shell. A PowerShell tab by itself isn't proof that a Linux distribution launched.

Microsoft's [WSL command reference](https://learn.microsoft.com/en-us/windows/wsl/basic-commands?ref=winerror-repair.org) distinguishes the installed-distribution list, version information and launch commands. From Windows, `wsl ~` starts the default distribution in its Linux user's home directory. If several distributions are installed, keep using the explicit distribution name when checking a particular one; the default can be a different environment.

## Keep Linux files and package updates in the right place

For a project using Linux tools, store its working files in the Linux file system, such as the user's home directory. Windows drive C: appears under `/mnt/c` inside WSL; access is possible, but it isn't the same storage location. Microsoft's [cross-file-system guidance](https://learn.microsoft.com/en-us/windows/wsl/filesystems?ref=winerror-repair.org) recommends keeping files on the same operating system as the tools working on them.

To view the current Linux directory in Windows File Explorer, enter the following in the Linux shell. Keep the final period:

```
explorer.exe .
```

Maintain the Linux distribution's packages separately from Windows and WSL updates. In **Ubuntu or Debian's Linux shell**, Microsoft's setup guide uses `sudo apt update` followed by `sudo apt upgrade`. Review the proposed changes and use the Linux password when prompted; the Windows sign-in PIN isn't that Linux password. Other distributions can use a different package manager; don't add an unfamiliar PPA or developer-tool collection just to verify the shell.

## Know what GUI support and failures mean

WSL 2 supports individual Linux graphical apps on Windows 11\. Microsoft's [Linux GUI-app requirements](https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps?ref=winerror-repair.org) also cover matching graphics drivers. This integration doesn't provide a complete Linux desktop environment, and it doesn't work with a distribution configured for WSL 1\. A separate X server isn't a mandatory first step for this current WSL 2 route.

If setup reports a virtualization or Windows-feature error, retain the exact code and stage. Use Microsoft's [WSL virtualization-error checks](https://learn.microsoft.com/en-us/windows/wsl/troubleshooting?ref=winerror-repair.org) with the PC maker or IT. Check the required Virtual Machine Platform feature and firmware virtualization; don't turn off Secure Boot, Memory integrity or other protections from an unrelated guide. Inside a Windows virtual machine, the host's configuration also matters.

For **WSL 2 requires an update to its kernel component** or an old kernel-MSI download, use the [current WSL versus legacy kernel-package checks](https://winerror-repair.org/wsl2-kernel-update-package-windows/). That guide also separates current offline installation from the old kernel-only package.

Keep existing Linux files before resetting or removing anything. `wsl --unregister` permanently removes the selected distribution's data, settings and software; don't use it to clear a setup message. Save Linux work before `wsl --shutdown`, which immediately stops all distributions and the WSL 2 utility VM. If installation remains blocked, give support the Windows build, exact command and error, installed-distribution list and failure stage through a private channel. The [system repair hub](https://winerror-repair.org/tag/system-repair/) separates broader Windows component failures from this Linux setup task.