Windows Subsystem for Linux

WSL2 Bugs

Commands

Enable WSL2 by default with

# configure new version
# Use WSL2 as default backend
wsl --set-default-version 2
# shutdown instance (end VMEM process)
wsl --shutdown

WSL Home Directory

  • The home directory of WSL resides in the network path \\wsl$\Ubuntu\home\USER.
  • Likewise, access windows drives in WSL under /mnt/c/...

Useful WSL Aliases ^407821

exists docker.exe && alias docker='docker.exe'
exists docker-compose.exe && alias docker-compose='docker-compose.exe'
exists rg && alias rg='rg -j1'
exists oc.exe && alias oc='oc.exe'
exists helm.exe && alias helm='helm.exe'
exists make.exe && alias make='make.exe'
exists kubectl.exe && alias kubectl='kubectl.exe'
 
alias java8=/mnt/c/Users/FDEJVF0/scoop/apps/temurin8-jdk/current/bin/java.exe
alias java11=/mnt/c/Users/FDEJVF0/scoop/apps/temurin11-jdk/current/bin/java.exe
alias java17=/mnt/c/Users/FDEJVF0/scoop/apps/temurin17-jdk/current/bin/java.exe