How do I use Bash on Ubuntu on Windows (WSL) for my VS Code terminal?

This answer seeks to help others avoid spending 1-2 hours troubleshooting and slowly finding disparate solutions for common problems when using WSL for the terminal in VS Code. It does not cover installing specific packages, but rather common ones that may not properly install as dependencies when installing things that do rely on their presence, … Read more

chmod WSL (Bash) doesn’t work

To enable changing file owners & permissions, you need to edit /etc/wsl.conf and insert the below config options: [automount] options = “metadata” Do this inside the WSL shell, potentially needing sudo to edit/create the file. This may require restarting WSL (such as with wsl –shutdown which is a Windows command, not one within WSL) or … Read more

How to use Git credential store on WSL (Ubuntu on Windows)?

If you installed Git for Windows there is a windows integrated credential manager installed on your system. You can run windows executables from WSL as found here. To use it you can run the following command (assuming that your git for windows is installed on C:\Program Files\Git) git config –global credential.helper “/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager-core.exe”

How do you install multiple, separate instances of Ubuntu in WSL? [closed]

The newer wsl command’s import/export feature can readily create copies of a distro without installing any additional tools or using RegEdit. For example cd C:\Users\MattSlay wsl –export Ubuntu ubuntu.tar wsl –import UbuntuRuby .\UbuntuRuby ubuntu.tar wsl –import UbuntuPython .\UbuntuPython ubuntu.tar wsl –import UbuntuDotNet .\UbuntuDotNet ubuntu.tar wsl -d UbuntuRuby wsl -d <distro> launches the distro. If WSL … Read more