Skip to content

Commit afa7dc7

Browse files
committed
Some corrections
Fix #2110
1 parent 790501c commit afa7dc7

36 files changed

+1334
-955
lines changed

WSL/about.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: What is Windows Subsystem for Linux
2+
title: What is Windows Subsystem for Linux
33
description: Learn about the Windows Subsystem for Linux, including the different versions and ways you can use them. Microsoft Loves Linux.
44
ms.date: 11/20/2023
55
ms.topic: article
@@ -13,7 +13,7 @@ Windows Subsystem for Linux (WSL) is a feature of Windows that allows you to run
1313
- Store files in an isolated Linux file system, specific to the installed distribution.
1414
- Run command-line tools, such as BASH.
1515
- Run common BASH command-line tools such as `grep`, `sed`, `awk`, or other ELF-64 binaries.
16-
- Run Bash scripts and GNU/Linux command-line applications including:
16+
- Run Bash scripts and GNU/Linux command-line applications including:
1717
- Tools: vim, emacs, tmux
1818
- Languages: [NodeJS](/windows/nodejs/setup-on-wsl2), JavaScript, [Python](/windows/python/web-frameworks), Ruby, C/C++, C# & F#, Rust, Go, etc.
1919
- Services: SSHD, [MySQL](./tutorials/wsl-database.md), Apache, lighttpd, [MongoDB](./tutorials/wsl-database.md), [PostgreSQL](./tutorials/wsl-database.md).
@@ -32,11 +32,11 @@ Windows Subsystem for Linux (WSL) is a feature of Windows that allows you to run
3232
3333
## What is WSL 2?
3434

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.
3636

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).
3838

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).
4040

4141
> [!VIDEO https://www.youtube.com/embed/MrZolfGm8Zk]
4242

WSL/basic-commands.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ The WSL commands below are listed in a format supported by PowerShell or Windows
1515
wsl --install
1616
```
1717

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`.
1919

20-
Options include:
20+
Options include:
2121

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`.
2323
- `--no-launch`: Install the Linux distribution but do not launch it automatically.
2424
- `--web-download`: Install from an online source rather than using the Microsoft Store.
2525

@@ -54,7 +54,7 @@ See a list of the Linux distributions installed on your Windows machine, includi
5454
wsl --set-version <distribution name> <versionNumber>
5555
```
5656

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.
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.
5858

5959
> [!WARNING]
6060
> 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
6565
wsl --set-default-version <Version>
6666
```
6767

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.
6969

7070
## Set default Linux distribution
7171

@@ -97,7 +97,7 @@ To run a specific Linux distribution with a specific user, replace `<Distributio
9797
wsl --update
9898
```
9999

100-
Update your WSL version to the latest version. Options include:
100+
Update your WSL version to the latest version. Options include:
101101

102102
- `--web-download`: Download the latest update from the GitHub rather than the Microsoft Store.
103103

@@ -109,13 +109,13 @@ wsl --status
109109

110110
See general information about your WSL configuration, such as default distribution type, default distribution, and kernel version.
111111

112-
## Check WSL version
112+
## Check WSL version
113113

114114
```powershell
115115
wsl --version
116116
```
117117

118-
Check the version information about WSL and its components.
118+
Check the version information about WSL and its components.
119119

120120
## Help command
121121

@@ -156,7 +156,7 @@ For example:
156156
wsl --shutdown
157157
```
158158

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).
160160

161161
## Terminate
162162

@@ -240,7 +240,7 @@ Attach and mount a physical disk in all WSL2 distributions by replacing `<DiskPa
240240
wsl --unmount <DiskPath>
241241
```
242242

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.
244244

245245
## Deprecated WSL commands
246246

0 commit comments

Comments
 (0)