Skip to content

Commit 509691e

Browse files
Made wsl-config.md clearer
1 parent e6e888f commit 509691e

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

WSL/wsl-config.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,24 @@ These options are available in Build 18980 and later.
318318

319319
> **Available in Windows Build 19041 and later**
320320
321-
You can configure global WSL options by placing a `.wslconfig` file into the root directory of your users folder: `C:\Users\<yourUserName>\.wslconfig`. This file can contain the following options:
321+
You can configure global WSL options by placing a `.wslconfig` file into the root directory of your users folder: `C:\Users\<yourUserName>\.wslconfig`.
322+
323+
Here is a sample .wslconfig file:
324+
325+
```console
326+
[wsl2]
327+
kernel=C:\\temp\\myCustomKernel
328+
memory=4GB # Limits VM memory in WSL 2 to 4 GB
329+
processors=2 # Makes the WSL 2 VM use two virtual processors
330+
```
331+
332+
This file can contain the following options:
322333

323334
### WSL 2 Settings
324335

325-
These settings affect the VM that powers any WSL 2 distribution.
336+
Section label: `[wsl2]`
337+
338+
These settings affect the VM that powers any WSL 2 distribution.
326339

327340
| key | value | default | notes|
328341
|:----|:----|:----|:----|

0 commit comments

Comments
 (0)