Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

wsl2 file location

wsl$
Comment

WSL2 config file

# Settings apply across all Linux distros running on WSL 2
[wsl2]

# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB
memory=4GB 

# Sets the VM to use two virtual processors
processors=2

# Specify a custom Linux kernel to use with your installed distros. The default kernel used can be found at https://github.com/microsoft/WSL2-Linux-Kernel
kernel=C:	empmyCustomKernel

# Sets additional kernel parameters, in this case enabling older Linux base images such as Centos 6
kernelCommandLine = vsyscall=emulate

# Sets amount of swap storage space to 8GB, default is 25% of available RAM
swap=8GB

# Sets swapfile path location, default is %USERPROFILE%AppDataLocalTempswap.vhdx
swapfile=C:	empwsl-swap.vhdx

# Disable page reporting so WSL retains all allocated memory claimed from Windows and releases none back when free
pageReporting=false

# Turn off default connection to bind WSL 2 localhost to Windows localhost
localhostforwarding=true

# Disables nested virtualization
nestedVirtualization=false

# Turns on output console showing contents of dmesg when opening a WSL 2 distro for debugging
debugConsole=true
Comment

PREVIOUS NEXT
Code Example
Shell :: turn redis off 
Shell :: wsl2 file location 
Shell :: git heroku commit 
Shell :: keyrings arch linux 
Shell :: ufw allow port from ip 
Shell :: certbot nginx certonly 
Shell :: setup ftp server linux 
Shell :: make multiple directories with a single command on windows 
Shell :: install brew max 
Shell :: home brew mac 
Shell :: remove yarn 0.32+git 
Shell :: add-apt-repository remove 
Shell :: flutter run all 
Shell :: bash store contents of file in array 
Shell :: bash division integer 
Shell :: install windows app powershell 
Shell :: bash split line and get element 
Shell :: git lfs add file 
Shell :: nohup output file 
Shell :: Module enzyme-to-json/serializer in the snapshotSerializers option was not found. <rootDir is 
Shell :: vadersentiment pip install 
Shell :: find A folder IN COMMAND line 
Shell :: git reset head to commit remote 
Shell :: kill python 
Shell :: add mirror list arch linux 
Shell :: docker logs 
Shell :: bash get last field in line 
Shell :: linux cp from one directory to another 
Shell :: linux find installation location 
Shell :: homebrew redis install 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =