Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pxlrbt authored Jun 23, 2020
1 parent 0f36f7f commit 7d6c960
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
# Move WSL

Bash and batch script to move WSL 2 distros VHDX file to a different location.
Bash, batch and PowerShell script to move WSL 2 distros VHDX file to a different location.

![Interactive Example](screencast.gif)

## Usage

### Bash script
_This is the recommended version_. Use with git bash for Windows or similiar.
### Bash
Use with git bash for Windows or similiar.

#### Interactive way
1) `./move-wsl`
2) Select your distro
3) Enter your target
3) Enter your target (i.e. `/d/wsl target/ubuntu`)

#### Explicit way
1) Get a list of WSL distros: `wsl -l`
2) Move your image: `./move-wsl [NAME] [LOCATION]`

__Example:__ `./move-wsl docker-desktop /d/docker`

### Batch script

### PowerShell
Interactive way of moving wsl for Windows PowerShell.

1) `./move-wsl.ps1`
2) Select your distro
3) Enter your target (i.e. `D:\wsl target\ubuntu`)

### Batch
_This is a lightweight version_ which can also be used from Windows CMD.

1) Get a list of WSL distros: `wsl -l`
Expand Down

0 comments on commit 7d6c960

Please sign in to comment.