Still rebooting to switch between Windows and Linux? WSL2 gives you full Linux kernel running at native speed inside Windows 11.
Complete WSL2 Setup in 5 Minutes:
# 1. Enable WSL feature dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart # 2. Enable Virtual Machine Platform dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart # 3. Download and install WSL2 kernel update # https://aka.ms/wsl2kernel # 4. Set WSL2 as default version wsl --set-default-version 2 # 5. Install Linux distribution from Microsoft Store # Ubuntu, Debian, Kali Linux, etc. # 6. Launch and setup wsl
Development Power Combo:
# Windows Terminal + WSL2 + VS Code = Perfect Dev Environment # 1. Install Windows Terminal (Microsoft Store) # 2. Install VS Code with WSL extension # 3. Configure Windows Terminal to open WSL by default # Development workflow: # - Code in VS Code (Windows) # - Run commands in WSL terminal # - Use Docker in WSL2 # - Access Windows files from Linux: /mnt/c/Users/... # Example: Full stack development code . # Opens VS Code with WSL remote # Edit files in Windows # Run in WSL terminal: npm install dotnet run docker-compose up
Access WSL Files from Windows:
# WSL files are accessible via: \\wsl$\Ubuntu\home\username \\wsl$\Debian\etc \\wsl$\ # Or use explorer.exe from WSL: explorer.exe . # Opens Windows Explorer in current WSL directory # Edit WSL files with Windows apps: notepad.exe ~/.bashrc code ~/projects/myapp
