![]() Set default Linux distribution wsl -set-default WSL 2 is only available in Windows 11 or Windows 10, Version 1903, Build 18362 or later. The number represents the version of WSL to default to for new Linux distribution installations. To set a default version of WSL 1 or WSL 2, replace with either the number 1 or 2. Set default WSL version wsl -set-default-version For distributions with large projects, we recommend backing up files before attempting a conversion. Switching between WSL 1 and WSL 2 can be time-consuming and result in failures due to the differences between the two architectures. To designate the version of WSL (1 or 2) that a Linux distribution is running on, replace with the name of the distribution and replace with 1 or 2. Set WSL version to 1 or 2 wsl -set-version ![]() Additional options that can be used with the list command include: -all to list all distributions, -running to list only distributions that are currently running, or -quiet to only show distribution names. This command can also be entered as: wsl -l -v. See a list of the Linux distributions installed on your Windows machine, including the state (whether the distribution is running or stopped) and the version of WSL running the distribution (WSL 1 or WSL 2). List installed Linux distributions wsl -list -verbose This command can also be entered as: wsl -l -o. See a list of the Linux distributions available through the online store. List available Linux distributions wsl -list -online ![]() If you run WSL on Windows 10 or an older version, you may need to include the -d flag with the -install command to specify a distribution: wsl -install -d.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |