From the course: Learning Windows Subsystem for Linux

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Using the wsl.exe tool

Using the wsl.exe tool

- [Scott] There are a few ways we can interact with our installed distributions, using the Windows Subsystem for Linux. One way, which is what we'll be using mostly in this course is by using the Distro shell directly. With the Ubuntu Distro I have installed, that's Bash, and that's what I see here in this terminal. The other way of interacting with Windows Subsystem for Linux is by using the wsl.exe executable with various options. This lets us interact with the subsystem and make changes to how it works. And it lets us run one off commands inside the Distro if we need to do that. I can use this tool from within the Linux environment or from a PowerShell terminal. I'll switch over to my PowerShell terminal here. Using the wsl.exe command, we can get a list of installed Distros, we can set which is the default, we can change the version of WSL that a Distro is using and more. To see all the options I'll type wsl --help.…

Contents