Skip to main content

Windows Subsystem for Linux

·108 words·1 min
Posts config wsl
zd
Author
zd
cli-geek, strategist
Table of Contents

Windows Subsystem for Linux
#

There are 2 config files in WSL.

  • wsl.conf - per-distribution basis
  • .wslconfig - globally across all WSL 2 distributions

Config: /etc/wsl.conf
#

  • located at /etc/ folder within the distribution.
  • per-distribution basis
[boot]
systemd = true
#command = service docker start

[user]
default = xx

[network]
hostname = wslpf
generateHosts = false
generateResolvConf = false

[automount]
#enabled = true
#mountFsTab = true
#root = /mnt
#options = 

[interop]
#enabled = true
#appendWindowsPath = true

Config: %UserProfile%.wslconfig
#

  • located at %UserProfile%\ (usually c:\Users\<UserLogin>) folder within Windows OS.
  • contains global configuration for all WSL distributions.
[wsl2]
memory=4GB
processors=4
#memory=16GB
#processors=8

Links#

Related

Hugo
·508 words·3 mins
Posts config hugo
Install, setup, configure Hugo.
Use of f-string format() in Python
·242 words·2 mins
Posts 101 python
Using f-string in Python.
Diagramming with Mermaid
·246 words·2 mins
Posts diagram mermaid
Create diagrams and visualizations using text and code.