You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -32,11 +32,11 @@ Windows Subsystem for Linux (WSL) is a feature of Windows that allows you to run
32
32
33
33
## What is WSL 2?
34
34
35
-
WSL 2 is the default distro type when installing a Linux distribution. WSL 2 uses virtualization technology to run a Linux kernel inside of a lightweight utility virtual machine (VM). Linux distributions run as isolated containers inside of the WSL 2 managed VM. Linux distributions running via WSL 2 will share the same network namespace, device tree (other than `/dev/pts`), CPU/Kernel/Memory/Swap, `/init` binary, but have their own PID namespace, Mount namespace, User namespace, Cgroup namespace, and `init` process.
35
+
WSL 2 is the default distro type when installing a Linux distribution. WSL 2 uses virtualization technology to run a Linux kernel inside of a lightweight utility virtual machine (VM). Linux distributions run as isolated containers inside of the WSL 2 managed VM. Linux distributions running via WSL 2 will share the same network namespace, device tree (other than `/dev/pts`), CPU/Kernel/Memory/Swap, `/init` binary, but have their own PID namespace, Mount namespace, User namespace, Cgroup namespace, and `init` process.
36
36
37
-
WSL 2 **increases file system performance** and adds **full system call compatibility** in comparison to the WSL 1 architecture. Learn more about how [WSL 1 and WSL 2 compare](./compare-versions.md).
37
+
WSL 2 **increases file system performance** and adds **full system call compatibility** in comparison to the WSL 1 architecture. Learn more about how [WSL 1 and WSL 2 compare](./compare-versions.md).
38
38
39
-
Individual Linux distributions can be run with either the WSL 1 or WSL 2 architecture. Each distribution can be upgraded or downgraded at any time and you can run WSL 1 and WSL 2 distributions side by side. See the [Set WSL version command](/windows/wsl/basic-commands#set-default-wsl-version).
39
+
Individual Linux distributions can be run with either the WSL 1 or WSL 2 architecture. Each distribution can be upgraded or downgraded at any time and you can run WSL 1 and WSL 2 distributions side by side. See the [Set WSL version command](./basic-commands.md#set-default-wsl-version).
Copy file name to clipboardExpand all lines: WSL/basic-commands.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,11 @@ The WSL commands below are listed in a format supported by PowerShell or Windows
15
15
wsl --install
16
16
```
17
17
18
-
Install WSL and the default Ubuntu distribution of Linux. [Learn more](./install.md). You can also use this command to install additional Linux distributions by running `wsl --install <Distribution Name>`. For a valid list of distribution names, run `wsl --list --online`.
18
+
Install WSL and the default Ubuntu distribution of Linux. [Learn more](./install.md). You can also use this command to install additional Linux distributions by running `wsl --install <Distribution Name>`. For a valid list of distribution names, run `wsl --list --online`.
19
19
20
-
Options include:
20
+
Options include:
21
21
22
-
-`--distribution`: Specify the Linux distribution to install. You can find available distributions by running `wsl --list --online`.
22
+
-`--distribution`: Specify the Linux distribution to install. You can find available distributions by running `wsl --list --online`.
23
23
-`--no-launch`: Install the Linux distribution but do not launch it automatically.
24
24
-`--web-download`: Install from an online source rather than using the Microsoft Store.
25
25
@@ -54,7 +54,7 @@ See a list of the Linux distributions installed on your Windows machine, includi
To designate the version of WSL (1 or 2) that a Linux distribution is running on, replace `<distribution name>` with the name of the distribution and replace `<versionNumber>` with 1 or 2. [Comparing WSL 1 and WSL 2](./compare-versions.md). WSL 2 is only available in Windows 11 or Windows 10, Version 1903, Build 18362 or later.
57
+
To designate the version of WSL (1 or 2) that a Linux distribution is running on, replace `<distribution name>` with the name of the distribution and replace `<versionNumber>` with 1 or 2. [Comparing WSL 1 and WSL 2](./compare-versions.md). WSL 2 is only available in Windows 11 or Windows 10, Version 1903, Build 18362 or later.
58
58
59
59
> [!WARNING]
60
60
> Switching between WSL 1 and WSL 2 can be time-consuming and result in failures due to the differences between the two architectures. For distributions with large projects, we recommend backing up files before attempting a conversion.
@@ -65,7 +65,7 @@ To designate the version of WSL (1 or 2) that a Linux distribution is running on
65
65
wsl --set-default-version <Version>
66
66
```
67
67
68
-
To set a default version of WSL 1 or WSL 2, replace `<Version>` with either the number 1 or 2. For example, `wsl --set-default-version 2`. The number represents the version of WSL to default to for new Linux distribution installations. [Comparing WSL 1 and WSL 2](./compare-versions.md). WSL 2 is only available in Windows 11 or Windows 10, Version 1903, Build 18362 or later.
68
+
To set a default version of WSL 1 or WSL 2, replace `<Version>` with either the number 1 or 2. For example, `wsl --set-default-version 2`. The number represents the version of WSL to default to for new Linux distribution installations. [Comparing WSL 1 and WSL 2](./compare-versions.md). WSL 2 is only available in Windows 11 or Windows 10, Version 1903, Build 18362 or later.
69
69
70
70
## Set default Linux distribution
71
71
@@ -97,7 +97,7 @@ To run a specific Linux distribution with a specific user, replace `<Distributio
97
97
wsl --update
98
98
```
99
99
100
-
Update your WSL version to the latest version. Options include:
100
+
Update your WSL version to the latest version. Options include:
101
101
102
102
-`--web-download`: Download the latest update from the GitHub rather than the Microsoft Store.
103
103
@@ -109,13 +109,13 @@ wsl --status
109
109
110
110
See general information about your WSL configuration, such as default distribution type, default distribution, and kernel version.
111
111
112
-
## Check WSL version
112
+
## Check WSL version
113
113
114
114
```powershell
115
115
wsl --version
116
116
```
117
117
118
-
Check the version information about WSL and its components.
118
+
Check the version information about WSL and its components.
119
119
120
120
## Help command
121
121
@@ -156,7 +156,7 @@ For example:
156
156
wsl --shutdown
157
157
```
158
158
159
-
Immediately terminates all running distributions and the WSL 2 lightweight utility virtual machine. This command may be necessary in instances that require you to restart the WSL 2 virtual machine environment, such as [changing memory usage limits](/windows/wsl/disk-space) or making a change to your [.wslconfig file](./manage.md).
159
+
Immediately terminates all running distributions and the WSL 2 lightweight utility virtual machine. This command may be necessary in instances that require you to restart the WSL 2 virtual machine environment, such as [changing memory usage limits](./disk-space.md) or making a change to your [.wslconfig file](./manage.md).
160
160
161
161
## Terminate
162
162
@@ -240,7 +240,7 @@ Attach and mount a physical disk in all WSL2 distributions by replacing `<DiskPa
240
240
wsl --unmount <DiskPath>
241
241
```
242
242
243
-
Unmount a disk given at the disk path, if no disk path is given then this command will unmount and detach ALL mounted disks.
243
+
Unmount a disk given at the disk path, if no disk path is given then this command will unmount and detach ALL mounted disks.
0 commit comments