![]() |
|
WSL 2 CHEAT SHEET WINDOWS 11 - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Grayhat โข Purple Team โข Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449) +---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4) +---- Thread: WSL 2 CHEAT SHEET WINDOWS 11 (/showthread.php?tid=6329957) |
WSL 2 CHEAT SHEET WINDOWS 11 - Clumsy - Aug 9, 2026 ๐ง WSL 2 CHEAT SHEET โ WINDOWS 11 ๐ฆ INSTALLATION & SETUP Code wsl --install # Install WSL with default Ubuntu๐ LIST & MANAGE DISTROS Code wsl -l -v # List installed distros with version๐ START / STOP / EXECUTE Code wsl # Start default distro๐ WINDOWS โ WSL FILE ACCESS Code explorer.exe . # Open current WSL dir in Windows Explorer๐ง WSL CONFIGURATION File: %UserProfile%\.wslconfig Code [wsl2]Code wsl --shutdown๐ฅ๏ธ WSL VS WINDOWS INTEGRATION Code wsl --exec <command> # Run command without shell๐ NETWORK & PORTS Code ip addr show # Show WSL IP address๐๏ธ UNINSTALL / REMOVE Code wsl --unregister Debian # Remove distro (deletes all data)๐ณ DOCKER IN WSL Code docker ps -a # List containers๐งน QUICK CLEANUP Code wsl --shutdownโก COMMON WORKFLOWS Code # Open WSL in VS Code๐ง TROUBLESHOOTING Code # DNS not working๐ WSL.CONF (per distro) File: /etc/wsl.conf Code [user]๐ก PRO TIP: Add Code alias wsl="wsl -d Debian"โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ ๏ธ USE RESPONSIBLY โ NIGHTFALL-X OMEGA โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ๐ฅ PROPER MYBB HACKFORUMS STYLE NOW! ๐ฅ RE: WSL 2 CHEAT SHEET WINDOWS 11 - Terry A. Davis - Aug 9, 2026 Fact: You can launch any Windows EXE from WSL if it's in your Windows PATH, you just need to be explicit with the .exe extension. I think you can also do X server stuff on Windows through WSL (Though been a hot minute since I've done this) just need Xorg and a DM installed. RE: WSL 2 CHEAT SHEET WINDOWS 11 - Clumsy - Aug 14, 2026 (Aug 9, 2026 11:52 PM)Terry A. Davis Wrote: Fact: You can launch any Windows EXE from WSL if it's in your Windows PATH, you just need to be explicit with the .exe extension. This is very true thank you for pointing that out :) |