![]() ![]() ![]() With this being the case, you have automatic access to be able to copy files from the Windows 10 host to the Windows Subsystem for Linux WSL.Ĭopying a local Windows 10 file to your Windows Subsystem for Linux instance Copy Files to Windows Subsystem for Linux WSL2 with SSHĪs you can imagine, it can get cumbersome to have to “sneakernet” files from your Windows host to your Windows Subsystem for Linux WSL environment. Using the built-in /mnt for the host filesystemĪs mentioned, by default, the Windows Subsystem for Linux automatically mounts the Windows 10 host C drive. So, we will take a look at how this can be enabled within the WSL/WSL2 Linux image. However, most are familiar and used to working with Linux environments and file movement by way of SSH, SCP, SFTP, etc. With that being said, you can certainly copy files from the mounted drive from the Windows 10 host and we will see how that is possible. With WSL2, you can’t see the mounted file system as it is abstracted by way of the transparent Hyper-V utility VM that is used to house the WSL instance. Ways to copy files to Windows Subsystem for Linux WSLīy default, Windows Subsystem for Linux automatically mounts the C$ drive on the Windows 10 host system which allows you to see the files on the local hard drive. #Copy log file from linux to windows how to#This post will take a look at how to copy files to Windows Subsystem for Linux WSL2 with SSH and see how to configure this. Additionally, if you want to copy files back and forth between environments for development, it is important to be able to do this uninhibited. This is much easier for large file edits and other configurations that lend themselves to a GUI text editor of sorts. This includes copying files both to and from Windows Subsystem for Linux distributions. You may wonder how you can work with files effectively. In working with Windows Subsystem for Linux, you will undoubtedly want to work with files with your WSL Linux distribution. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |