wsl items
Build, Test & Publish / Build (push) Successful in 1m40s
Build, Test & Publish / Build and Publish Container Image (push) Successful in 3m6s
Build, Test & Publish / Deploy to Infrastructure (push) Successful in 39s

This commit is contained in:
2026-07-09 12:48:16 +10:00
parent db11e2e359
commit bcb2a244ee
4 changed files with 27 additions and 0 deletions
+8
View File
@@ -218,6 +218,14 @@ export default defineConfig({
items: [
{ text: 'String Literal Types', link: '/typescript/string-literal-types' },
]
},
{
text: 'WSL',
link: '/wsl/',
collapsed: true,
items: [
{ text: 'Clear Unused Disk Space', link: '/wsl/clear-unused-disk-space' },
]
}
],
+4
View File
@@ -94,6 +94,10 @@ hero:
text: Typescript
link: /typescript/
- theme: alt
text: WSL
link: /wsl/
# features:
# - title: Feature A
# details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
+12
View File
@@ -0,0 +1,12 @@
# Clear Unused Disk Space
WSL will grow but never shrink the size of the virtual disk. This can be a problem if you have a lot of unused space in your WSL virtual disk. You can reclaim this space by running the following command in PowerShell admin:
```powershell
wsl --shutdown
# Navigate to the location of the ext4.vhdx file. This is usually in C:\Users\<username>\AppData\Local\Packages\<distro>\LocalState\ext4.vhdx
# Run the following command to compact the virtual disk
Optimize-VHD -Path .\ext4.vhdx -Mode Full
```
+3
View File
@@ -0,0 +1,3 @@
# WSL Snippets and Musings
#### [Clear Unused Disk Space](./clear-unused-disk-space.md)