The managers of Windows 10 who want to install WSL (Windows Subsystem for Linux), can now do so by running just one command from Windows 10 version 2004 and later.
Microsoft released this improvement in the preview version of Insider in October 2020 and now apparently released it with the latest updates to Windows 10 2004, 20H2 and 21H1.
Improvement is included in KB5004296, which is an optional update for the listed versions of Windows 10. The update is cumulative. So the new feature will be released in a few days, through Patch Day August. Optional updates are installed on systems only if administrators install them through Windows Update, or by requesting the update from the Microsoft Update Catalog website.
Microsoft has not yet mentioned the WSL enhancement in the release notes. But a post on Microsoft Dev Blog by Craig Loewen confirms the inclusion of the new choiceof installing WSL on Windows 10.
All you need to do is open a command prompt with administrative privileges and run wsl.exe –install to install WSL on device σας. Από προεπιλογή, θα εγκατασταθεί το Ubuntu on the device as it is the default Linux distribution.
The main advantage of the new method is that the installation is much faster. Before, you had to install all the required components separately on your device.
Here's an overview of the commands and what you can use them for. You should know that some commands they can run only after installing WSL on your device.