If you want to move WSL2 Linux distro(Ubuntu) from C: drive D: below are the steps.
Export Ubuntu
mkdir D:\backup wsl --export Ubuntu D:\backup\ubuntu.tar Unregister the same distribution to remove it from the C: drive:
wsl --unregister Ubuntu Import Ubuntu