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%\
(usuallyc:\Users\<UserLogin>
) folder within Windows OS. - contains global configuration for all WSL distributions.
[wsl2]
memory=4GB
processors=4
#memory=16GB
#processors=8