My WSL terminal lost color

The reason could be a modified .bash_profile file. Try putting these lines to ~/.bash_profile source ~/.bashrc Or a better way is to run the below command from your terminal echo “source ~/.bashrc” >> ~/.bash_profile To know more about how do we set environment-variables and what role do files like .bashrc, .bash_profile play, you may want … Read more

Cannot connect to the Docker daemon on bash on Ubuntu windows

Found the solution on this post: https://blog.jayway.com/2017/04/19/running-docker-on-bash-on-windows/ Running docker against an engine on a different machine is actually quite easy, as Docker can expose a TCP endpoint which the CLI can attach to. This TCP endpoint is turned off by default; to activate it, right-click the Docker icon in your taskbar and choose Settings, and … Read more

How to correct `git` reporting `detected dubious ownership in repository` without adding `safe.directory` when using WSL?

In fact, I installed a newer version of git-bash 2 days ago and I suspect the bash environment could condition this. I understand you installed a new version of Git for Windows, which includes Git Bash. Newer versions of Git, starting with 2.35.2 and 2.36, including Git for Windows, are stricter about directory ownership: https://github.blog/2022-04-18-highlights-from-git-2-36/#stricter-repository-ownership-checks. … Read more

Where are the files inside wsl2 physically stored? [closed]

All the files are stored in a ext4.vhd files in the installation directory, which you can’t mount directly onto windows as it is in ext4 (obv) There’s two ways to change the location of the above mentioned vhd file the official, tedious way and an unofficial quick and dirty way The official tedious way Export … Read more

How can I run a Windows executable from WSL (Ubuntu) Bash

In the Windows 10 Creators Update (build 1703, April 2017), this is natively supported. So you can now run Windows binaries from Linux… notepad.exe or any other .exe (the extension is needed and it needs being on your path, some older versions need the whole path) …and vice versa using one of the following: bash.exe … Read more