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
Copy file name to clipboardExpand all lines: docs/content/how-to/wsl-install.mdx
+33-5Lines changed: 33 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,9 @@ sidebar_label: WSL How to install
10
10
The Windows Subsystem for Linux lets developers run a GNU/Linux environment directly on Windows.
11
11
The latest version is WSL 2, which powers the Windows Subsystem for Linux to run ELF64 Linux binaries on Windows.
12
12
13
-
> List available WSL distros
13
+

14
+
15
+
## ✅ List available WSL distros
14
16
15
17
```bash
16
18
$ wsl -l -o
@@ -26,27 +28,53 @@ Ubuntu-18.04 Ubuntu 18.04 LTS
26
28
Ubuntu-20.04 Ubuntu 20.04 LTS
27
29
```
28
30
29
-
>Install WSL via `powershell`
31
+
## ✅ Install WSL via `powershell`
30
32
31
33
Below command installs Ubuntu distribution.
32
34
33
35
```bash
34
36
$ wsl --install Ubuntu
35
37
```
36
38
37
-
>Check Current WSL Version
39
+
## ✅ Check Current WSL Version
38
40
39
41
```bash
40
42
$ wsl -l -v
41
43
```
42
44
43
-
>Update from **WSL 1** to **WSL 2**
45
+
## ✅ Update from **WSL 1** to **WSL 2**
44
46
45
47
```bash
46
48
$ wsl --set-version Ubuntu 2
47
49
```
48
50
49
-
<br />
51
+
## ✅ In Summary
52
+
53
+
WSL stands for "Windows Subsystem for Linux." It is a compatibility layer provided by Microsoft that allows you to run a Linux distribution natively on a Windows operating system.
54
+
WSL essentially enables you to use Linux command-line tools, utilities, and even run Linux applications alongside your Windows applications without the need for a separate virtual machine or dual-boot setup.
55
+
56
+
This is particularly useful for developers and system administrators who work in heterogeneous environments or need access to Linux tools on a Windows machine.
57
+
58
+
Currently, are two major versions of WSL:
59
+
60
+
### **WSL 1**
61
+
62
+
The first version of WSL is built on a translation layer that converts Linux system calls into Windows system calls.
63
+
While it provides some compatibility with Linux applications, it may not offer full system call compatibility, and performance can be somewhat limited.
64
+
65
+
### **WSL 2**
66
+
67
+
The second version of WSL uses a virtualization technology called Hyper-V to provide a more complete and efficient Linux kernel experience.
68
+
WSL 2 offers better performance and improved compatibility with Linux applications. It allows for running a full-fledged Linux distribution with its own kernel alongside Windows.
69
+
70
+
Key features and use cases of WSL include:
71
+
72
+
- Running Linux terminal and command-line tools within a Windows terminal.
73
+
- Accessing and managing files in a Linux filesystem from Windows.
74
+
- Running Linux server applications and development tools (e.g., web servers, databases, Docker) directly on Windows.
75
+
- Developing cross-platform applications that need to be tested on both Windows and Linux.
76
+
- Leveraging Linux package managers (e.g., apt, yum) to install and manage software packages on Windows.
77
+
- WSL allows developers to use familiar Linux tools and workflows, making it easier to work with Linux-based technologies while using a Windows development environment.
0 commit comments