Tuesday 18 June 2024

Windows Subsystem for Linux (wsl)

wsl is available in versions of Windows 10 and above.

wsl --list

Will list installed distributions. In no distribution is installed, it will say "Windows Subsystem for Linux has no installed distributions".

To view a list of available distributions type:

wsl --list --online

This will give you some distributions like Ubuntu, Debian, kali-linux, openSUSE and others.

Here's how to install the Ubuntu distribution.

wsl --install -d Ubuntu

There are some recommended practises for setting a development environment in wsl.

No comments: