DEV Community

Horus Lugo
Horus Lugo

Posted on • Originally published at horus.dev

3 1

Installing Linux on Windows (WSL) is easier than ever

TL;DR: Open a terminal with admin rights and execute the following command: wsl --install. If you want to choose a distro, continue reading!

Until very recently, you had to go through multiple steps to enable WSL in your system. The worst part was that some of them were in the control panel, others in a terminal, and you also had to use the Microsoft Store to choose the Linux distribution you wanted.

With the recent changes they've made for the release of both Windows 11 and the latest Windows 10 update, installing WSL has become a straightforward task.

You only need to run one command if you're happy with using Ubuntu as your Linux distribution:

wsl --install
Enter fullscreen mode Exit fullscreen mode

If you prefer another distribution, with this other command, you can list all the available distros:

wsl --list --online
Enter fullscreen mode Exit fullscreen mode

And then, run the installation command:

wsl --install -d <distro name>
Enter fullscreen mode Exit fullscreen mode

That's it! You'll have to restart your computer, and then it will ask you for a username and password. Once you create your user, the process will be completed.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post