WSL2
Learn to install WSL, an easy Linux environment on Windows, and configure it for code development.
Installing WSL
Installing more instances
Import the image
Setup new user
Setup instance hostname
Update & Upgrade
Add new terminal to Windows terminals
Using WSL
Commands
Command
Description
Configuring WSL
.wslconfig vs wsl.conf
.wslconfig vs wsl.confAuto size reduction of .vhdx file
.vhdx fileInstall Optimize-VHD
Configure --set-sparse in distro
To manually reduce the vhdx size
Other untested ways (wslcompact)
Limiting WSL resource consumption
Configure .bashrc
Show current git branch in terminal
Configure Hostname
Setup as your Dev space
Backing up & Restore WSL
.vhdx file
.vhdx fileLast updated
