Skip to content

Commit f0b33cd

Browse files
authored
Merge pull request #688 from MicrosoftDocs/master
Fix code snippet - powershell not bash
2 parents ea04e8b + 470f180 commit f0b33cd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

WSL/install-win10.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,21 @@ You will then need to [create a user account and password for your new Linux dis
8888

8989
You can check the WSL version assigned to each of the Linux distributions you have installed by opening the PowerShell command line and entering the command (only available in [Windows Build 19041 or higher](ms-settings:windowsupdate)): `wsl -l -v`
9090

91-
```bash
91+
```powershell
9292
wsl --list --verbose
9393
```
9494

9595
To set a distribution to be backed by either version of WSL please run:
9696

97-
```bash
97+
```powershell
9898
wsl --set-version <distribution name> <versionNumber>
9999
```
100100

101101
Make sure to replace `<distribution name>` with the actual name of your distribution and `<versionNumber>` with the number '1' or '2'. You can change back to WSL 1 at anytime by running the same command as above but replacing the '2' with a '1'.
102102

103103
Additionally, if you want to make WSL 2 your default architecture you can do so with this command:
104104

105-
```bash
105+
```powershell
106106
wsl --set-default-version 2
107107
```
108108

0 commit comments

Comments
 (0)