File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Move WSL
2
2
3
- Bash and batch script to move WSL 2 distros VHDX file to a different location.
3
+ Bash, batch and PowerShell script to move WSL 2 distros VHDX file to a different location.
4
4
5
5
![ Interactive Example] ( screencast.gif )
6
6
7
7
## Usage
8
8
9
- ### Bash script
10
- _ This is the recommended version _ . Use with git bash for Windows or similiar.
9
+ ### Bash
10
+ Use with git bash for Windows or similiar.
11
11
12
12
#### Interactive way
13
13
1 ) ` ./move-wsl `
14
14
2 ) Select your distro
15
- 3 ) Enter your target
15
+ 3 ) Enter your target (i.e. ` /d/wsl target/ubuntu ` )
16
16
17
17
#### Explicit way
18
18
1 ) Get a list of WSL distros: ` wsl -l `
19
19
2 ) Move your image: ` ./move-wsl [NAME] [LOCATION] `
20
20
21
21
__ Example:__ ` ./move-wsl docker-desktop /d/docker `
22
22
23
- ### Batch script
23
+
24
+ ### PowerShell
25
+ Interactive way of moving wsl for Windows PowerShell.
26
+
27
+ 1 ) ` ./move-wsl.ps1 `
28
+ 2 ) Select your distro
29
+ 3 ) Enter your target (i.e. ` D:\wsl target\ubuntu ` )
30
+
31
+ ### Batch
24
32
_ This is a lightweight version_ which can also be used from Windows CMD.
25
33
26
34
1 ) Get a list of WSL distros: ` wsl -l `
You can’t perform that action at this time.
0 commit comments