WSL

Contents
Introduction
Various versions
Installation
Mistakes.
Installation from aka. ms
Installation of Linux kernel for WSL2
Alias
Check the version.
Navigating directories from Windows
Similar articles

Introduction

The official name is Windows Subsystem for Linux. Or WSL for short.

WSL provides the ability to run native Linux utilities in Windows .

This became possible on August 2, 2016. When Microsoft and Canonical Collaborate It is possible to use the original image of the OS Ubuntu 14.04 for directly running on top of the WSL multiple tools and utilities from that OS without any virtualization.

From May 6, 2019, WSL 2, which runs on Hyper, is available. V.

In this article, you will learn how to install WSL. On how to use teams Bash read the article «Basics of Bash»

If you just need to run a few bash commands from Windows, the easiest option is not WSL. installation Git Bash

Available options

As of today, 2026Year available for WSL installation:

and others.

Banner image

Installation

First thing you need. Enable developer mode in Windows.

When it is engaged, you can go directly to activate WSL.

Installation from PowerShell

wsl --install -d Ubuntu

Installing: Ubuntu Ubuntu has been installed. Launching Ubuntu...

Then the window with Ubuntu

Installing, this may take a few minutes... Please create a default UNIX user account. The username does not need to match your Windows username. For more information visit: https://aka.ms/wslusers Enter new UNIX username: andrei New password: Retype new password: passwd: password updated successfully Installation successful! Windows Subsystem for Linux is now available in the Microsoft Store! You can upgrade by running 'wsl.exe --update' or by visiting https://aka.ms/wslstorepage Installing WSL from the Microsoft Store will give you the latest WSL updates, faster. For more information please visit https://aka.ms/wslstoreinfo To run a command as administrator (user "root"), use "sudo ". See "man sudo_root" for details. Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.10.102.1-microsoft-standard-WSL2 x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage This message is shown once a day. To disable it please create the /home/andrei/.hushlogin file.

Starting the installation from the control panel

Press the key. WIN write control and go into Control panel
(Control Panel)

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

Programmes and Components
(Programs and Features)

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

Enabling or disabling Windows components
(Turn Windows features on or off)

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

OK

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

Windows for Linux (beta version)
(Windows Subsystem for Linux (Beta))

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

Wait.

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

Restart now.

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

After restarting, press the key combination WIN + R inject cmd.

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL launch

In the appeared command line we write bash

We're sluggish. y

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

Wait.

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

Introduce. y If you need Russian language

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

Introduce a new user name

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

Enter the password.

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

Enjoying the result: now to launch Bash You just have to put this in. command-line

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
WSL
WSL installation

Access the flash drive from Bash in Windows

ls /dev

Mistakes.

C:\Users\Andrei>bash

Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstore C:\Users\Andrei>

Installation from aka. ms

We need to go to the site. aka.ms/wslstore

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
Great choice of laptops on the website OLDI
WSL installation

In the first versions of the box was Ubuntu, so now for a change choose another option.

Debian

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
Great choice of laptops on the website OLDI
WSL installation

In the next step, we'll choose No, thanks

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
Great choice of laptops on the website OLDI
WSL installation

We need to wait for the loading.

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
Great choice of laptops on the website OLDI
WSL installation

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
Great choice of laptops on the website OLDI
WSL installation

Enter the username

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
Great choice of laptops on the website OLDI
WSL installation

Enter your password and try not to forget it.

Step-by-step instructions for enabling WSL WSL2 Bash in Windows 10 image from www.aredel.com
Great choice of laptops on the website OLDI
WSL installation

Installation of WSL2

You need to download WSL2 from the site. docs.microsoft.com/en-us/windows/wsl/wsl2-kernel

Installation of WSL2 Linux subsystem for Windows linux kernel image from www.aredel.com
WSL2
Installation of WSL2

Next

Installation of WSL2 Linux subsystem for Windows linux kernel image from www.aredel.com
WSL2
Installation of WSL2

Finish

Installation of WSL2 Linux subsystem for Windows linux kernel image from www.aredel.com
WSL2
Installation of WSL2

# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf: # [network] # generateResolvConf = false nameserver 192.168.0.1 nameserver fec0:0:0:ffff::1 nameserver fec0:0:0:ffff::2

Alias

Different aliases can be set to speed up work.

From a WSL perspective, disk C: is inside /mnt

alias andrei="cd /mnt/c/Users/Andrei"

Check the version.

To check the WSL version open PowerShell and execute

wsl --list --verbose

NAME STATE VERSION * Debian Stopped 2 docker-desktop Stopped 2 docker-desktop-data Stopped 2 Ubuntu-22.04 Running 2

Navigating directories from Windows

If you enter the address bar of the Windows Explorer

\\wsl$

Directories with all installed subsystems will be visible as regular Windows folders.

Installation of WSL2 Linux subsystem for Windows linux kernel image from www.aredel.com
All WSL2 directories
Conductor view

Installation of WSL2 Linux subsystem for Windows linux kernel image from www.aredel.com
WSL2 Ubuntu Directories
Conductor view
Banner image

Article author: Andrei Olegovich

Related articles
Windows
Loudness Equalization
PowerShell
tail analog in PowerShell
Firewall
Drivers
Developer Mode in Windows 10
BASH in Windows 10
Telnet in Windows 10
PATH system varialbe
Windows Installation on gpt disk

Search this site

Subscribe to Telegram channel @aofeed to follow new articles and updates to old ones

Go to channel

@aofeed

Ask a question in the Telegram group

@aofeedchat

Contacts and cooperation:
I recommend our hosting beget.com
Write to info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: