wsl items
This commit is contained in:
@@ -218,6 +218,14 @@ export default defineConfig({
|
|||||||
items: [
|
items: [
|
||||||
{ text: 'String Literal Types', link: '/typescript/string-literal-types' },
|
{ 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' },
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
@@ -94,6 +94,10 @@ hero:
|
|||||||
text: Typescript
|
text: Typescript
|
||||||
link: /typescript/
|
link: /typescript/
|
||||||
|
|
||||||
|
- theme: alt
|
||||||
|
text: WSL
|
||||||
|
link: /wsl/
|
||||||
|
|
||||||
# features:
|
# features:
|
||||||
# - title: Feature A
|
# - title: Feature A
|
||||||
# details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
# details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||||
|
|||||||
@@ -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
|
||||||
|
```
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# WSL Snippets and Musings
|
||||||
|
|
||||||
|
#### [Clear Unused Disk Space](./clear-unused-disk-space.md)
|
||||||
Reference in New Issue
Block a user