盘符映射到了/mnt下,所以如果想cd到C:/folder,需要在文件目录前加上/mnt: cd /mnt/c/folder 文件操作时,遇到Permission denied的问题,需要给权限: sudo chmod -R 777 目录 reference: https://blog.csdn.net/zhengxiangwen/article/details/50625986
You will look at both graphical and command-line ways of accessing WSL files inside Windows. Access WSL files using Windows Explorer The most basic way of accessing a file on Windows is by launching the Windows File Explorer. The file manager is present on the taskbar, and you can just ope...
WSL2 is a lightweight Hyper-V-based virtual machine with its own separate network interfaces, IP addresses, etc. Localhost and 127.0.0.1 are host local references and having more than one host, they refer to different things in Windows host and Linux guest host. WSL2 already supplies some ...
By default wsl2 enables wsl localhost to be accessible from windows but not vice versa. To able to access you need to use windows system IP from wsl2. Running below command gives us Network Interface (WSL) IP. vim /etc/resolv.conf ...
So, if you’re dual booting with Windows & Linux using different disks, you can now access your Linux files from Windows! Getting started To mount a disk, open a PowerShell window with administrator privileges and run: Copy wsl --mount <DiskPath> To list the available disks in Windows, ...
As I said in the title, when I tried to use the windows localhost data in wsl2, I could neither obtain it through 127.0.0.1, nor access it according to the nameserver in cat /etc/resolv.conf. My windows system version : 19041.84 WSL2 : U...
How to Access Linux Files in a Windows Subsystem for Linux (WSL) Distro from Windows 10 The Windows Subsystem for Linux (WSL) is a new Windows 10 feature that enables you to run native Linux command-line tools directly on Windows, alongside your traditio
位于Windows 下的程序(例如Navicat)连接 MySQL 提示 Access Denied同样位于 WSL 的程序可以正常访问 MySQL 原因 MySQL 把 Windows 下的程序的连接视为远程 MySQL 请求,若你使用的 MySQL 用户没有远程权限,则会出错。WSL 特性?#(滑稽) 解决办法 WSL 输入 mysql -uroot use mysql; update user set host = '%...
Access Windows Subsystem for Linux (WSL) by ssh installssh server aptinstallopenssh-server modifiedsshd_config # $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $ # This is the sshd server system-wide configuration file. See...
Open the WSL Directory in File Explorer Directly You can also access them directly at the\\wsl$path. In File Explorer or any other Windows application that can browse files, navigate to the following path: \\wsl$ You'll see the folders for all your installed Linux distributions, which are...