|$ curl https://forge-ai.dev/api/markdown?path=docs/os/wsl
$cat docs/wsl.md
updated Recently·16 min read·published

WSL

WSLWindowsLinuxBeginner🎯Free Tools
Introduction

WSL (Windows Subsystem for Linux) lets developers run a Linux environment directly on Windows without managing a full virtual machine. It is the recommended way to use Linux tools on Windows.

Installation
wsl-install.ps1
POWERSHELL
1wsl --install
2wsl --install -d Debian
3wsl --set-default-version 2
Daily Workflow
wsl-workflow.sh
Bash
1# Enter WSL
2wsl
3
4# Open current directory in VS Code
5code .
6
7# Keep projects in the Linux filesystem
8cd /home/$USER/projects
9
10# Access Windows files when needed
11ls /mnt/c/Users/Alice/Documents

warning

Store project files inside the WSL filesystem (e.g., /home/<user>/projects) for the best I/O performance. Avoid running Linux build tools on files stored in /mnt/c.
See Also

For a deeper guide, see Linux / WSL.