The fastest way to copy files from Windows to WSL
-
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.
-
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 .