User Tools

Site Tools


windows_subsystem_wsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
windows_subsystem_wsl [2023/02/25 20:08] – skipidarwindows_subsystem_wsl [2026/10/28 19:55] (current) – skipidar
Line 1: Line 1:
 ===== Windows Subsystem ===== ===== Windows Subsystem =====
 +
 +Shrink 
 +
 +<sxh>
 +docker system prune -a --volumes
 +sudo apt clean
 +sudo fstrim -av
 +
 +Then in PowerShell, run as Administrator (quit Docker Desktop first if it’s running):
 +
 +wsl --shutdown
 +diskpart
 +
 +At the DISKPART> prompt:
 +
 +select vdisk file="C:\Users\alexander.friesen\AppData\Local\wsl\{0be58534-511e-420c-82e2-ffad792692c6}\ext4.vhdx"
 +attach vdisk readonly
 +compact vdisk
 +detach vdisk
 +exit
 +</sxh>
 +
 +
 +
  
 Reinstall Reinstall
Line 6: Line 30:
 wsl --unregister "Legacy" wsl --unregister "Legacy"
 wsl --list --online wsl --list --online
-wsl --install -d Ubuntu-22.04+wsl --install -d Ubuntu-24.04 
 </sxh> </sxh>
  
Line 27: Line 51:
 <sxh> <sxh>
 code . code .
 +</sxh>
 +
 +
 +Watch the folder
 +
 +https://stackoverflow.com/questions/69811903/angular-ng-build-watch-in-remote-containers-and-remote-wsl-not-detecting-file
 +
 +<sxh>
 +    "ng": "ng",
 +    "start": "ng serve --poll 500",
 +    "build": "ng build",
 +    "watch": "ng build --watch --poll 500 --configuration development",
 +    "test": "ng test"
 </sxh> </sxh>
  
windows_subsystem_wsl.1677355716.txt.gz · Last modified: by skipidar