Howto wsl windows: Difference between revisions
Jump to navigation
Jump to search
Mandulete1 (talk | contribs) No edit summary |
Mandulete1 (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
create a backup of the wsl distro: | create a backup of the wsl distro: | ||
wsl --export kali-linux kali-linux-backup.tar | wsl --export kali-linux kali-linux-backup.tar | ||
restore from backup: | |||
wsl --import kali-linux C:\Users\USERNAME\Distros C:\kali-linux-backup.tar | |||
if you want to uninstall linux distro: | if you want to uninstall linux distro: | ||
wsl --unregister kali-linux | wsl --unregister kali-linux | ||
launch installed the distro: | launch installed the distro: | ||
wsl --distribution kali-linux | wsl --distribution kali-linux |
Revision as of 21:42, 1 February 2023
list of available wsl distros to install:
wsl --list -o
install specific distro:
wsl --install -d kali-linux
update the wsl kernel:
wsl --update
set windows subsystem for linux 2 your default architecture for new distros:
wsl --set-default-version 2
convert the distro from wsl to wsl 2:
wsl --set-version kali-linux 2
list distro name and version:
wsl -l -v
restart wsl:
wsl --shutdown
create a backup of the wsl distro:
wsl --export kali-linux kali-linux-backup.tar
restore from backup:
wsl --import kali-linux C:\Users\USERNAME\Distros C:\kali-linux-backup.tar
if you want to uninstall linux distro:
wsl --unregister kali-linux
launch installed the distro:
wsl --distribution kali-linux