Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

wsl convert to wsl2

wsl --set-version <Distro> 2

# For setting all future distributions to use WSL 2
wsl --set-default-version 2
Comment

convert wsl to wsl2

wsl --set-version <distro_name> <version>
wsl --set-version Ubuntu-18.04 2
wsl --set-version Ubuntu-20.04 2
Comment

convert a wsl 1 distro to wsl 2

wsl --set-version <Distro> 2
Comment

convert wsl to wsl2

wsl --set-version <distro_name> <version>
wsl --set-version Ubuntu-18.04 2
wsl --set-version Ubuntu-20.04 2
Comment

convert wsl to wsl2

wsl --set-version <distro_name> <version>
wsl --set-version Ubuntu-18.04 2
wsl --set-version Ubuntu-20.04 2
Comment

WSL2 .wslconfig Windows

# turn off all wsl instances such as docker-desktop
wsl --shutdown
notepad "$env:USERPROFILE/.wslconfig"

# .wslconfig
[wsl2]
memory=3GB   # Limits VM memory in WSL 2 up to 3GB
processors=4 # Makes the WSL 2 VM use two virtual processors
Comment

PREVIOUS NEXT
Code Example
Shell :: shell one line for loop 
Shell :: docker build with args 
Shell :: shell script if input is empty 
Shell :: install gulp ubuntu 
Shell :: chown: invalid user: ‘www-data:www-data’ 
Shell :: run php in browser localhost 
Shell :: install tmux2 
Shell :: git bring your changes to a new branch 
Shell :: install webstorm ubuntu 20.04 
Shell :: icon theme and widget ubuntu 
Shell :: firebase install 
Shell :: create usb install windows 10 on ubuntu 
Shell :: bash script command not found 
Shell :: ufw add rule with comment 
Shell :: git clone https 
Shell :: git commit single file 
Shell :: openjdk 1.8 mac brew 
Shell :: import db drush 
Shell :: how to uninstall npm package 
Shell :: create user with home directory ubuntu 
Shell :: git fatal bad revision cherry-pick 
Shell :: bash if is link simbolico 
Shell :: inkscape svg to pdflatex 
Shell :: batch fork bomb 
Shell :: install yarn windows 
Shell :: generate git ssh key 
Shell :: install cypress dev only 
Shell :: remove all branch local git 
Shell :: powershell break loop 
Shell :: boost volume in ubuntu 18.04 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =