Windows 10 Bash (Ubuntu) – How to scroll up? [closed]
You must set Properties → Layout → Screen Buffer Size → Height to the number of lines you want. The default was 50 lines. I set it to 1000 and that’s enough for me.
You must set Properties → Layout → Screen Buffer Size → Height to the number of lines you want. The default was 50 lines. I set it to 1000 and that’s enough for me.
In case anyone finds this via search and doesn’t notice that there is actually a solution listed in the question, you can fix WSL clock drift via. sudo hwclock -s If you just need to do it occasionally, this is a fine solution. If you need to do it more frequently, consider @piouson’s solution
The generated file /etc/resolv.conf is: nameserver 172.24.0.1 ..had to change it to nameserver 8.8.8.8 which resolves the problem
I’m on Windows 10 Home with May Update and have Ubuntu 18.04 for WSL installed, I can open the console in any folder with Shift + Right Click and selecting the Open Linux shell here option
git blame file.txt blames the version of file.txt in your working copy. If file.txt has Windows-newlines (CRLF) in the repo and you have core.autocrlf = true, then every line of file.txt will be considered different and will be reported by git blame as not yet committed. The reason why git blame <my_branch> (or even better … Read more
I wanted to clarify that as of 9 December 2016, you most certainly can install Java 8 on Ubuntu Bash for Windows 10 and that @Karl Horton is correct. You will need to install unzip sudo apt-get install unzip Copy this script somewhere in your bash for windows session and make it executable (chmod +x … Read more
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
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
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”
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