DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,904 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Horus Lugo
Horus Lugo

Posted on • Originally published at horus.dev

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.

Top comments (0)

πŸ‘‹ Hey, my name is Noah and I’m the one who set up this ad. My job is to get you to join DEV, so if you fancy doing me a favor, I’d love for you to create an account.

If you found DEV from searching around, here are a couple of our most popular articles on DEV: