Install Ubuntu on Windows 10 and 11 (WSL2 or WSL)

Tiempo de lectura: 2 minutos

Reading time: 2 minutes

Hello, in today’s tutorial, I’m going to show you how to install Ubuntu (WSL2 or WSL) on Windows 10 and 11 to be able to use this distribution within Windows itself. This allows us, among other things, to use Ubuntu’s SSH, install a test environment, or install packages with apt.


To install WSL, open PowerShell and use this command (https://docs.microsoft.com/en-us/windows/wsl/install)

wsl --install

Once installed, restart your PC.

And you will see this message upon restarting.


Then it will ask you to enter the UNIX user data and password.


Once created, we can access it using the Ubuntu console or Windows Terminal (I recommend this APP: https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701?hl=en-US&gl=US)

If we use Windows Terminal, we can select the Ubuntu console


Now I recommend creating a shortcut of the Ubuntu user path to share files between Ubuntu and Windows

\\wsl$\Ubuntu\home\{username}

The path is indicated above, where {username} corresponds to the username you provided in the previous step.

Leave a Comment