$env:USERPROFILE
because it's guaranteed (or at least should be) to always return your user profile directory in Windows, so the result should be something like C:\Users\<your_windows_user_name>\wsl\coniferous_ubuntu_old
. $env:USERPROFILE
because it's guaranteed (or at least should be) to always return your user profile directory in Windows, so the result should be something like C:\Users\<your_windows_user_name>\wsl\coniferous_ubuntu_old
. D:\WSL\...
would also be acceptable, if you have a good fast D: drive. $env:
is the PowerShell method for getting an environment variable. Some other examples are $env:COMPUTERNAME
and $env:USERNAME
. So the same directory will typically be accessible at C:\Users\$env:USERNAME\WSL
.