The fastest way to copy files from Windows to WSL

The fastest way to copy files from Windows to WSL

  1. Use WSL to sudo ls /mnt/*list all mounted disks in the system. You can see that all disks in the Windows system are listed.
    image

  2. Find the location of the file you need to copy, and then use the cp command. For example, if I want to copy the gitlab backup file under the h drive to wsl, I can use the following command.
    cp /mnt/h/nana/1619799951_2021_04_30_12.0.2_gitlab_backup.tar .
    image

Guess you like

Origin blog.csdn.net/feichangyanse/article/details/132827783