Configuring and controlling WSL
The previous section briefly mentioned the wsl
command, which is the most common way to interact with and control WSL. In this section, you will learn how you can interactively control WSL using the wsl
command, as well as how to change the behavior of WSL by modifying settings in the wsl.conf
configuration file.
Important note
Earlier builds of WSL provided a wslconfig.exe
utility. If you see any references to this in documentation or articles, don't worry – all the functionality of wslconfig.exe
(and more) is available in the wsl
command that you will see in the following sections.
The commands and configuration in the following section will give you the tools you need to control running distros in WSL and configure the behavior of the distros (and WSL as a whole) to suit your requirements.
Introducing the wsl command
The wsl
command gives you a way to control and interact with WSL and installed Linux distros, such as running...