Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Run Linux in WSL from Windows; share files between hosts
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -9% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 21% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -18% | 0% |
Invoke Linux commands from Windows, pass data between WSL and Windows filesystems, and manage WSL distributions — without switching terminals.
powershellwsl -- ls -la /home/ wsl -- df -h wsl -- uname -a
powershellwsl bash -c "cd /home/user/project && npm install && npm run build"
powershell# Convert Windows path to WSL path $winPath = "C:\Users\<you>\data.csv" $wslPath = wsl wslpath -u $winPath wsl -- cat $wslPath | wsl -- grep "ERROR"
powershell# Windows C: drive is mounted at /mnt/c inside WSL wsl -- ls /mnt/c/Users/<you>/Documents
powershellwsl --list --verbose
powershellwsl --status wsl --version
powershellwsl --shutdown
powershellwsl --set-default Ubuntu-22.04
powershellwsl -d Ubuntu-22.04 -- python3 --version
powershell# Get WSL IP $wslIp = (wsl -- hostname -I).Trim() Write-Host "WSL IP: $wslIp" # Use netsh to forward (requires elevated session) # netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=$wslIp
"Run grep on a log file using WSL" → wsl -- grep -i "error" /mnt/c/logs/app.log | wsl -- tail -n 50
"What WSL distros do I have installed?" → wsl --list --verbose — shows name, state, and WSL version for each distro.
"Use awk to sum a column in a CSV" → wsl -- awk -F',' '{sum += $3} END {print sum}' /mnt/c/Users/<you>/data.csv
wsl --shutdown to reclaim RAMOther measured skills in the registry, with their headline benchmark lift.