windows_subsystem_wsl
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| windows_subsystem_wsl [2023/02/25 17:07] – created skipidar | windows_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> | ||
| + | |||
| + | select vdisk file=" | ||
| + | attach vdisk readonly | ||
| + | compact vdisk | ||
| + | detach vdisk | ||
| + | exit | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Reinstall | ||
| <sxh> | <sxh> | ||
| wsl --unregister " | wsl --unregister " | ||
| wsl --list --online | wsl --list --online | ||
| - | wsl --install -d Ubuntu-22.04 | + | wsl --install -d Ubuntu-24.04 |
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | Clone | ||
| + | |||
| + | < | ||
| + | wsl --export OriginalDistributionName FileName | ||
| + | wsl --import ClonedDistributionName InstallLocation FileName | ||
| + | wsl --distribution ClonedDistributionName | ||
| + | </ | ||
| + | |||
| + | |||
| + | Visual Studio Code integration | ||
| + | |||
| + | https:// | ||
| + | |||
| + | start Visual Studio Code | ||
| + | < | ||
| + | code . | ||
| + | </ | ||
| + | |||
| + | |||
| + | Watch the folder | ||
| + | |||
| + | https:// | ||
| + | |||
| + | < | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| </ | </ | ||
| + | |||
windows_subsystem_wsl.1677344861.txt.gz · Last modified: by skipidar
